Skip to content

Commit

Permalink
Swap GH and PyPI publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Oct 31, 2023
1 parent 9863624 commit 779872d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -205,15 +205,6 @@ jobs:
git push --force
git checkout main
- name: Publish to GitHub
uses: ncipollo/release-action@v1
with:
artifacts: 'dist/*'
bodyFile: 'RELEASE.md'
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.build.outputs.new_version }}
prerelease: ${{ contains(needs.build.outputs.new_version, 'b') }}

# Upload to TestPyPI / PyPI via "trusted publishing".
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
Expand All @@ -230,6 +221,15 @@ jobs:
with:
packages-dir: dist/ # the default

- name: Publish to GitHub
uses: ncipollo/release-action@v1
with:
artifacts: 'dist/*'
bodyFile: 'RELEASE.md'
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ needs.build.outputs.new_version }}
prerelease: ${{ contains(needs.build.outputs.new_version, 'b') }}

- name: Trigger GH Pages rebuild
uses: benc-uk/workflow-dispatch@v1
with:
Expand Down

0 comments on commit 779872d

Please sign in to comment.