Skip to content

Commit ef468c8

Browse files
author
Alan Christie
committed
ci: Changes for trusted publishing
1 parent ac442d2 commit ef468c8

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636
- '3.11'
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4040
- name: Set up Python ${{ matrix.python-version }}
41-
uses: actions/setup-python@v3
41+
uses: actions/setup-python@v5
4242
with:
4343
python-version: ${{ matrix.python-version }}
4444
- name: Install requirements

.github/workflows/publish.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ on:
2727
jobs:
2828
build-and-publish:
2929
runs-on: ubuntu-latest
30+
permissions:
31+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
3032
steps:
3133
- name: Checkout
32-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3335
- name: Inject slug/short variables
34-
uses: rlespinasse/github-slug-action@v3.x
36+
uses: rlespinasse/github-slug-action@v4
3537
- name: Set up Python
36-
uses: actions/setup-python@v3
38+
uses: actions/setup-python@v5
3739
with:
3840
python-version: '3.11'
3941
- name: Install dependencies
@@ -45,6 +47,3 @@ jobs:
4547
python -m build --sdist --wheel --outdir dist/
4648
- name: Publish
4749
uses: pypa/gh-action-pypi-publish@release/v1
48-
with:
49-
user: ${{ secrets.PYPI_USERNAME }}
50-
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)