Skip to content

Commit

Permalink
Use official PyPI GitHub Actions to publish the package
Browse files Browse the repository at this point in the history
  • Loading branch information
laymonage committed Jul 26, 2023
1 parent a3ff59e commit 01b5a16
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ permissions:
jobs:
build_and_publish:
runs-on: ubuntu-latest
environment:
name: publish
url: https://pypi.org/project/wagtail-modeladmin
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -32,8 +37,4 @@ jobs:
run: python -m flit build

- name: Publish to PyPI
env:
FLIT_USERNAME: '__token__'
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
FLIT_INDEX_URL: https://upload.pypi.org/legacy/
run: python -m flit publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 01b5a16

Please sign in to comment.