Skip to content

Commit

Permalink
Merge pull request #253 from digitronik/trusted_publisher
Browse files Browse the repository at this point in the history
Move to release PyPI with a Trusted Publisher
  • Loading branch information
digitronik authored Apr 12, 2024
2 parents 2a91369 + 53a46ae commit 75f6cf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Note: Do not rename workflow name `deploy.ymal` as its used by trusted plublisher.

name: 🐍 Publish to PyPI

on:
Expand All @@ -14,12 +16,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.8'
python-version: '3.12'
architecture: 'x64'

- name: Build Package and Check
Expand All @@ -29,7 +31,4 @@ jobs:
twine check dist/*
- name: Deploy to PyPi
uses: pypa/gh-action-pypi-publish@v1.4.1
with:
user: __token__
password: ${{ secrets.pypi_wt_core }}
uses: pypa/gh-action-pypi-publish@release/v1
8 changes: 4 additions & 4 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.12"

- name: Install Deps
run: |
Expand All @@ -74,7 +74,7 @@ jobs:
run: sphinx-build -b html -d build/sphinx-doctrees docs build/htmldocs

- name: Archive Docs
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: sphinx-htmldocs
path: build/htmldocs
Expand All @@ -94,7 +94,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.12"
architecture: "x64"

- name: Development setup on ${{ matrix.os }}
Expand All @@ -113,7 +113,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.12"
architecture: "x64"

- name: Build and verify with twine
Expand Down

0 comments on commit 75f6cf6

Please sign in to comment.