Skip to content

Commit

Permalink
Final changes before PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfior committed Jan 9, 2025
1 parent f6ccab8 commit bbe7737
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 30 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
if: github.event_name == 'release' || (contains(github.event.pull_request.body, 'deploy please') && github.event_name == 'pull_request')
if: github.event_name == 'release'
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -17,7 +17,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Verify the tag version in the pyproject.toml
if: github.event_name == 'release'
run: grep -q "version = \"${{ github.event.release.tag_name }}\"" pyproject.toml || exit 1
shell: bash
- name: Set Node.js 20.x
Expand Down Expand Up @@ -62,30 +61,4 @@ jobs:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verify-metadata: false
verbose: true

publish-dev-package:
name: Publish dev package
needs:
- build
if: contains(github.event.pull_request.body, 'deploy please') && github.event_name == 'pull_request'
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/python-web3-wallet
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: python-package-distributions
path: dist/
- name: Set Development Version
run: |
current_version=$(poetry version -s)
poetry version "${current_version}.dev${{ github.run_number }}"
shell: bash
- name: Build and Publish Development Package
run: poetry publish -p ${{ secrets.PYPI_TOKEN }} -u "__token__" --build
shell: bash
verbose: true
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "python-web3-wallet"
version = "0.0.13"
version = "0.0.14"
description = "Streamlit component that allows users to connect a wallet and send transactions with dynamic recipients and amounts"
authors = ["Gnosis AI <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit bbe7737

Please sign in to comment.