Skip to content

Commit 3fad43e

Browse files
committed
chore: Pubish for every commit
1 parent fe46733 commit 3fad43e

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/tag.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Tag and Publish every commit
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
tag:
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/sphinxnotes-project
14+
permissions:
15+
contents: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: '0'
20+
- uses: anothrNick/github-tag-action@v1
21+
env:
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)