Skip to content

Commit

Permalink
💚 update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thrzl authored Apr 20, 2024
1 parent ba865d6 commit 40b710c
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,21 @@ permissions:
contents: read

jobs:
deploy:

publish-package:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Publish PyPi package
uses: code-specialist/pypi-poetry-publish@v1
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }}
python-version: '3.9'
- name: Install Rye
run: |
curl -sSf https://rye-up.com/get | RYE_INSTALL_OPTION="--yes" bash
- name: Build and publish
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
rye build
rye publish --token $PYPI_TOKEN

0 comments on commit 40b710c

Please sign in to comment.