Skip to content

Commit

Permalink
Merge pull request #357 from mtreinish/trusted-publishers
Browse files Browse the repository at this point in the history
Pivot PyPI publishing to use trusted publishers
  • Loading branch information
mtreinish authored Nov 11, 2023
2 parents ed046ea + 65cb38e commit 3bef578
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ jobs:
wheel-build:
name: Build and Publish Release Artifacts
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.8'
- name: Install Deps
run: pip install -U twine wheel
run: pip install -U wheel
- name: Build Artifacts
run: |
python setup.py sdist bdist_wheel
Expand All @@ -23,7 +26,4 @@ jobs:
with:
path: ./dist/stestr*
- name: Publish to PyPi
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: stestr-release
run: twine upload dist/stestr*
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3bef578

Please sign in to comment.