-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (37 loc) · 950 Bytes
/
release.yml
File metadata and controls
50 lines (37 loc) · 950 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
44
45
46
47
48
49
50
name: Release
on: push
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Get sources
uses: actions/checkout@v2
- name: Install Deps
run: pip install lxml pyyaml
- name: Run
run: python -m touchmcu --all
- name: Save Artifact
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: actions/upload-artifact@v2
with:
name: layouts
path: output/*
if-no-files-found: error
retention-days: 1
release:
name: Release
needs: build
runs-on: ubuntu-20.04
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Sanity Clean
run: rm -rf artifacts
- name: Get Artifacts
uses: actions/download-artifact@v2
with:
name: layouts
- name: Release
uses: softprops/action-gh-release@v1
with:
files: '*.tosc'