Skip to content

Commit

Permalink
Update publish-on-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pamoller authored Jan 17, 2024
1 parent efba62b commit acf9311
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python xmllformatter package
name: Publish xmllformatter on PyPi

on:
push:
Expand Down Expand Up @@ -39,3 +39,16 @@ jobs:
with:
name: python-package-distributions
path: dist/

publish-to-pypi:
name: Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/xmlformatter
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

0 comments on commit acf9311

Please sign in to comment.