-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (46 loc) · 1.39 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
name: Release
on:
workflow_run:
workflows: ["Test"]
branches: [main]
types:
- completed
jobs:
release:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install micropython dependencies
run: |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv install micropython-1.19.1
pyenv local micropython-1.19.1
make dist
- name: Archive Release
uses: thedoctor0/zip-release@main
with:
type: 'zip'
directory: 'dist/'
filename: 'release.zip'
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: |
npm install @semantic-release/commit-analyzer \
@semantic-release/release-notes-generator \
@semantic-release/github \
semantic-release
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release -e ./.github/.releaserc.json