-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 937 Bytes
/
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
36
37
38
39
40
41
42
43
44
45
name: Release
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Poetry
uses: snok/install-poetry@v1
- name: Build
run: |
poetry install
poetry run python build.py
poetry run black .
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 18
extra_plugins: |
@semantic-release/changelog@6
@semantic-release/exec
@semantic-release/git@10
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
- name: Publish package
if: steps.semantic.outputs.new_release_published == 'true'
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_API_TOKEN }}