forked from spudde123/SC2MapAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.07 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
36
37
38
39
name: Release
on:
workflow_call:
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
steps:
# check-out repo
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
# install poetry
- name: Install poetry
run: pipx install poetry==1.8.4
# set-up python with cache
- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'poetry'
# install requirements
- name: Install requirements
run: poetry install --only semver
# semantic release
- name: Python Semantic Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN_MA }}
run: |
set -o pipefail
# Set git details
git config --global user.name "github-actions"
git config --global user.email "github-actions@github.com"
# run semantic-release
poetry run semantic-release publish -v DEBUG -D commit_author="github-actions <action@github.com>"