Skip to content

Commit

Permalink
Update release workflow (#38)
Browse files Browse the repository at this point in the history
* Update release workflow

* Fix yaml

* Debug artifact paths

* Fix artifact path

* Cleanup
  • Loading branch information
d5h committed May 18, 2023
1 parent f1b49a4 commit 64d1206
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
release:
types: [published]
jobs:
release:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -14,4 +14,22 @@ jobs:
- run: pip install nox==2022.1.7 toml==0.10.2 poetry==1.0.9
- run: nox
- run: poetry build
- run: poetry publish --username=__token__ --password=${{secrets.PYPI_TOKEN}}
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/
release:
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/grpc-interceptor
steps:
- uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 64d1206

Please sign in to comment.