Skip to content

Commit d47329b

Browse files
committed
configure trusted publishers
1 parent 920262a commit d47329b

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@ name: Publish library
22

33
on:
44
push:
5-
branches:
6-
- main
75
tags:
86
# Don't try to be smart about PEP 440 compliance,
97
# see https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
108
- v*
119

1210
jobs:
1311
publish:
12+
environment:
13+
name: publish
14+
url: https://pypi.org/p/labs-sphinx-theme
1415
runs-on: ubuntu-latest
16+
permissions:
17+
id-token: write
1518
steps:
16-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
1720
- name: Set up Python
18-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
1922
with:
2023
python-version: "3.10"
2124
- name: Install build dependencies
@@ -25,6 +28,3 @@ jobs:
2528
- name: Publish to PyPI
2629
uses: pypa/gh-action-pypi-publish@release/v1
2730
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
28-
with:
29-
user: __token__
30-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)