-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (40 loc) · 1.14 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
40
41
42
43
44
45
46
47
48
49
name: 🚀 Release
on:
push:
branches: [main, alpha]
jobs:
release:
runs-on: ubuntu-latest
outputs:
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
last_release_version: ${{ steps.semantic.outputs.last_release_version }}
steps:
- name: 💾 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: 🧹 Cleanup apt list
uses: christopherpickering/[email protected]
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 📥 Download deps
uses: bahmutov/npm-install@v1
with:
useLockFile: false
- name: 🐍 Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: 🎶 Setup Poetry
uses: snok/install-poetry@v1
- name: 🚀 Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 18
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}