Skip to content

Commit 44655d8

Browse files
committed
release: 1.2.1
- Switch PyPI publishing to OIDC trusted publisher (id-token: write, pypa/gh-action-pypi-publish) and drop the PYPI_TOKEN secret usage - Bump theme version to 1.2.1 Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>
1 parent ec67f32 commit 44655d8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ jobs:
3838
runs-on: ubuntu-latest
3939
needs: build
4040
if: startsWith(github.ref, 'refs/tags')
41+
permissions:
42+
id-token: write
43+
contents: read
4144
steps:
4245
- uses: actions/checkout@v6
4346
- name: Setup Node.js
@@ -56,18 +59,15 @@ jobs:
5659
run: |
5760
python -m pip install --upgrade pip
5861
pip install -r requirements.txt
59-
pip install setuptools wheel twine
62+
pip install setuptools wheel
6063
- name: Build for publishing
6164
run: |
6265
./node_modules/.bin/gulp clean
6366
./node_modules/.bin/gulp theme:build
6467
- name: Setup for publishing
6568
run: python setup.py sdist bdist_wheel
6669
- name: Publish
67-
run: twine upload dist/*.*
68-
env:
69-
TWINE_USERNAME: __token__
70-
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
70+
uses: pypa/gh-action-pypi-publish@release/v1
7171

7272
publish-docker:
7373
runs-on: ubuntu-latest

src/theme/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (1, 2, 0)
1+
VERSION = (1, 2, 1)
22
__version__ = '.'.join(str(v) for v in VERSION)
33

44

0 commit comments

Comments
 (0)