Skip to content

Commit

Permalink
Switch to openconnect auth
Browse files Browse the repository at this point in the history
  • Loading branch information
hussein-awala committed Jan 26, 2024
1 parent 363ca95 commit d9e13d6
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '*'

jobs:
build:
release-build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
Expand Down Expand Up @@ -35,7 +35,25 @@ jobs:
run: poetry install --no-interaction --no-root --all-extras
- name: Install library
run: poetry install --no-interaction --all-extras
- name: Publish to PyPI
- name: Build release distributions
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish --build
poetry build
- name: Upload dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d9e13d6

Please sign in to comment.