Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Mar 23, 2024
1 parent bb73b3c commit 5aa1779
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
name: Upload release to PyPI
name: Publish package distributions to PyPI

on: [push]

jobs:
pypi-publish:
name: Upload release to PyPI
name: Publish package distributions to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sphinxnotes-snippet
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- id: Build distributions
run: make dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- run: make dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.PYPI_TEST_API_TOKEN }}

0 comments on commit 5aa1779

Please sign in to comment.