Skip to content

save

save #16

Workflow file for this run

name: Tag and Publish every commit
on:
push:
branches:
- master
jobs:
tag:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sphinxnotes-project
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: anothrNick/github-tag-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_TAG: 1.0a${{ github.run_number }}
- uses: actions/setup-python@v5
- run: pip install build twine && make dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}