Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
build-and-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write

steps:
- name: Checkout code
Expand All @@ -33,5 +36,21 @@ jobs:
- name: Build package
run: python -m build

- name: Generate SHA256
run: |
sha256sum dist/*.tar.gz > dist/fireblocks-cli-${GITHUB_REF##*/}.tar.gz.sha256

- name: Upload Release Assets to GitHub
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.tar.gz
dist/*.tar.gz.sha256
generate_release_notes: true
create_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.11