Skip to content

Commit

Permalink
Use trusted publisher instead of secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmtroffaes committed Sep 12, 2024
1 parent 9ca4e0b commit 8f055a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
release:
if: github.repository == 'mcmtroffaes/sphinxcontrib-bibtex'
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
Expand All @@ -27,11 +30,8 @@ jobs:
if: ${{ !startsWith(github.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "sphinxcontrib-bibtex"
version = "2.6.3a3"
version = "2.6.3a4"
license = { text = "BSD-2-Clause" }
description = "Sphinx extension for BibTeX style citations."
readme = "README.rst"
Expand Down

0 comments on commit 8f055a7

Please sign in to comment.