Skip to content

Commit

Permalink
Merge pull request #100 from ali-zahedi/fix/githubaction
Browse files Browse the repository at this point in the history
fix: add hotfix for pypi publish
  • Loading branch information
ali-zahedi authored Mar 28, 2024
2 parents f0f2643 + 41fdcdb commit f71fa5d
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.set_output.outputs.version }}
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Checkout Code
uses: actions/checkout@v3
Expand Down Expand Up @@ -46,6 +44,16 @@ jobs:
run: |
echo "$NEW_TAG"
sed -i "s/__version__ = \"1.0.0\"/__version__ = \"$NEW_TAG\"/g" azbankgateways/__init__.py
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/az-iranian-bank-gateways/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Build package
uses: actions/setup-python@v4
with:
Expand All @@ -54,6 +62,5 @@ jobs:
run: python -m pip install build
- name: Build dist
run: python -m build

- name: Publish to PyPI
uses: pypa/[email protected]
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit f71fa5d

Please sign in to comment.