File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 1
- name : Tag every commit
1
+ name : Tag and Publish every commit
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- master
7
7
8
8
jobs :
9
- build :
9
+ tag :
10
10
runs-on : ubuntu-latest
11
+ environment :
12
+ name : pypi
13
+ url : https://pypi.org/p/sphinxnotes-project
11
14
permissions :
12
15
contents : write
13
16
steps :
16
19
fetch-depth : ' 0'
17
20
- uses : anothrNick/github-tag-action@v1
18
21
env :
19
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # if you don't want to set write permissions use a PAT token
20
- TAG_PREFIX :
21
- INITIAL_VERSION : 1.1.0
22
- PRERELEASE : true
23
- PRERELEASE_SUFFIX : a
22
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23
+ CUSTOM_TAG : 1.0a${{ github.run_number }}
24
+ - uses : actions/setup-python@v5
25
+ - run : pip install build twine && make dist
26
+ - uses : pypa/gh-action-pypi-publish@release/v1
27
+ with :
28
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments