-
Notifications
You must be signed in to change notification settings - Fork 9
43 lines (35 loc) · 959 Bytes
/
Copy pathpublish_package.yml
File metadata and controls
43 lines (35 loc) · 959 Bytes
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
name: CD
on:
push:
branches: [master]
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
with:
token: ${{secrets.ADMIN_TOKEN}}
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: 3.8
- uses: Gr1N/setup-poetry@v8
with:
poetry-version: 1.8.5
- name: Install semantic release
run: |
pip install -U pip
pip install python-semantic-release==7.34.6
- name: Setup user
uses: fregante/setup-git-user@v2
- name: Generate version and commit / tag
run: semantic-release publish
env:
GH_TOKEN: ${{secrets.ADMIN_TOKEN}}
- name: Publish package to pypi
run: |
poetry config pypi-token.pypi ${{secrets.PYPI_API_TOKEN}}
poetry build
poetry publish