File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-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
+ - tag-every-commit
7
8
8
9
jobs :
9
- build :
10
+ tag :
10
11
runs-on : ubuntu-latest
12
+ environment :
13
+ name : pypi
14
+ url : https://pypi.org/p/sphinxnotes-project
11
15
permissions :
12
16
contents : write
13
17
steps :
16
20
fetch-depth : ' 0'
17
21
- uses : anothrNick/github-tag-action@v1
18
22
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
23
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24
+ CUSTOM_TAG : 1.0a${{ github.run_number }}
25
+ - uses : actions/setup-python@v5
26
+ - run : pip install build twine && make dist
27
+ - uses : pypa/gh-action-pypi-publish@release/v1
28
+ with :
29
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments