Skip to content

Commit 0333c94

Browse files
committed
ci: Publish newly created tag
1 parent 0111776 commit 0333c94

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/tag.yml

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

33
on:
44
push:
55
branches:
66
- master
77

88
jobs:
9-
build:
9+
tag:
1010
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/sphinxnotes-project
1114
permissions:
1215
contents: write
1316
steps:
@@ -16,8 +19,10 @@ jobs:
1619
fetch-depth: '0'
1720
- uses: anothrNick/github-tag-action@v1
1821
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 }}

0 commit comments

Comments
 (0)