File tree Expand file tree Collapse file tree 2 files changed +21
-23
lines changed Expand file tree Collapse file tree 2 files changed +21
-23
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- name : Create Releases on Tags
1
+ name : Publish New Release
2
2
3
3
on :
4
4
push :
5
5
tags :
6
6
- " *"
7
7
8
8
jobs :
9
- build :
9
+ pypi :
10
+ name : Publish package distributions to PyPI
11
+ runs-on : ubuntu-latest
12
+ environment :
13
+ name : pypi
14
+ url : https://pypi.org/p/sphinxnotes-snippet
15
+ permissions :
16
+ id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : actions/setup-python@v5
20
+ - run : pip install build twine && make dist
21
+ - uses : pypa/gh-action-pypi-publish@release/v1
22
+ with :
23
+ repository-url : https://test.pypi.org/legacy/
24
+ password : ${{ secrets.PYPI_TEST_API_TOKEN }}
25
+
26
+ release :
27
+ name : Publish Github Release
28
+ needs : [pypi]
10
29
runs-on : ubuntu-latest
11
30
permissions :
12
31
contents : write
You can’t perform that action at this time.
0 commit comments