Skip to content

Commit 0603cd1

Browse files
committed
ci: Publish newly created tag
1 parent 0111776 commit 0603cd1

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/tag.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
name: Tag every commit
1+
name: Tag and Publish every commit
22

33
on:
44
push:
55
branches:
66
- master
7+
- tag-every-commit
78

89
jobs:
9-
build:
10+
tag:
1011
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/sphinxnotes-project
1115
permissions:
1216
contents: write
1317
steps:
@@ -16,8 +20,10 @@ jobs:
1620
fetch-depth: '0'
1721
- uses: anothrNick/github-tag-action@v1
1822
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 }}

0 commit comments

Comments
 (0)