forked from smplman/sn32f240b-keyboard-bootloader
-
Notifications
You must be signed in to change notification settings - Fork 77
56 lines (44 loc) · 1.14 KB
/
auto_build.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
50
51
52
53
54
55
56
name: Compile Bootloaders
on:
push:
branches: [ master ]
release:
types:
- published
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: debian:latest
steps:
- uses: actions/checkout@v3
- name: Build jumploaders
run: sh build.sh
- name: Find artifact files
id: find-files
run: |
find build/ -type f -name "*.bin" -print > artifact_files.txt
echo "FILES=$(cat artifact_files.txt | tr '\n' ',')" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
with:
name: Pre-Compiled Jumploaders
path: ${{ env.FILES }}
if-no-files-found: error
publish_release:
name: Publish (Release)
runs-on: ubuntu-latest
needs: [build]
if: github.event.release.tag_name
steps:
- uses: actions/download-artifact@v3
with:
name: Pre-Compiled Jumploaders
path: build/
- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ github.ref_name }}
files: build/*.bin
fail_on_unmatched_files: true