Skip to content

Commit

Permalink
Update pythonpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yymao authored Dec 6, 2024
1 parent 2060790 commit a55016d
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,22 @@ on:

jobs:
deploy:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: production
url: https://pypi.org/p/adstex
environment: production
permissions:
id-token: write
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- uses: pypa/gh-action-pypi-publish@release/v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools twine
- name: Build and publish
run: |
python setup.py sdist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a55016d

Please sign in to comment.