File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : " github-actions"
4
+ directory : " /"
5
+ schedule :
6
+ interval : " weekly"
Original file line number Diff line number Diff line change @@ -2,20 +2,23 @@ name: Publish library
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
7
5
tags :
8
6
# Don't try to be smart about PEP 440 compliance,
9
7
# see https://www.python.org/dev/peps/pep-0440/#appendix-b-parsing-version-strings-with-regular-expressions
10
8
- v*
11
9
12
10
jobs :
13
11
publish :
12
+ environment :
13
+ name : publish
14
+ url : https://pypi.org/p/labs-sphinx-theme
14
15
runs-on : ubuntu-latest
16
+ permissions :
17
+ id-token : write
15
18
steps :
16
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v4
17
20
- name : Set up Python
18
- uses : actions/setup-python@v4
21
+ uses : actions/setup-python@v5
19
22
with :
20
23
python-version : " 3.10"
21
24
- name : Install build dependencies
25
28
- name : Publish to PyPI
26
29
uses : pypa/gh-action-pypi-publish@release/v1
27
30
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
28
- with :
29
- user : __token__
30
- password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments