-
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 933 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
name: Semantic Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.AST_SELECTOR_GITHUB_TOKEN }}
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: 3.8
cache: poetry
- name: Install dependencies
run: poetry install
- name: Python Semantic Release
run: |
git config --global user.name "github-actions"
git config --global user.email "action@github.com"
poetry run semantic-release publish -D commit_author="github-actions <action@github.com>"
env:
GH_TOKEN: ${{secrets.AST_SELECTOR_GITHUB_TOKEN}}
PYPI_TOKEN: ${{secrets.PYPI_TOKEN}}