Skip to content

Commit

Permalink
ci: fix release workflow for Python Semantic Release v8 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Jul 25, 2023
1 parent a3b5eb2 commit a2c26aa
Show file tree
Hide file tree
Showing 3 changed files with 921 additions and 532 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ jobs:
release:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -35,12 +33,11 @@ jobs:
git config --global user.email 'gha@prql-lang.org'
- name: Python Semantic Release
id: release
env:
GH_TOKEN: ${{ secrets.PRQL_BOT_GH_TOKEN }}
REPOSITORY_USERNAME: __token__
REPOSITORY_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
poetry run semantic-release --verbose version
poetry run twine upload dist/*
poetry run semantic-release --verbose publish
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.release.outputs.released == 'true'
Loading

0 comments on commit a2c26aa

Please sign in to comment.