Skip to content

Commit

Permalink
PyPi trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
pierky committed Oct 21, 2023
1 parent e717e09 commit 336d119
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,9 @@ jobs:

runs-on: ubuntu-latest

permissions:
id-token: write

if: startsWith(github.ref, 'refs/tags/v')

steps:
Expand All @@ -397,15 +400,12 @@ jobs:
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

# Only non-alpha releases go to the official PyPi
- name: Publish distribution to PyPI (official release)
if: contains(github.ref, 'alpha') != true
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

push_to_registry:
name: Push Docker image to Docker Hub
Expand Down
2 changes: 1 addition & 1 deletion pierky/arouteserver/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

__version__ = "1.21.2" # pragma: no cover
__version__ = "1.21.3-alpha3" # pragma: no cover
COPYRIGHT_YEAR = 2023 # pragma: no cover

0 comments on commit 336d119

Please sign in to comment.