-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.11 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This workflow will
# 1) Update the version number in pyproject.toml based on the commit history
# 2) Create a git tag
# 3) Create a release on GitHub
# 4) Upload the package to PyPI
# name: Release
# on:
# push:
# branches: [main]
# jobs:
# release:
# runs-on: ubuntu-latest
# concurrency: release
# if: ${{ github.ref == 'refs/heads/main' }}
# steps:
# # Checkout action is required for token to persist
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: Python Semantic Release
# uses: relekang/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# # Remember to copy the [tool.semantic_release] section from pyproject.toml
# # as well
# # To enable pypi,
# # 1) Set upload_to_pypi to true in pyproject.toml and
# # 2) Set the pypi_token in the repo
# # 3) Uncomment the two lines below
# repository_username: __token__
# repository_password: ${{ secrets.PYPI_API_TOKEN }}