-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (33 loc) · 1.1 KB
/
build.yaml
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: Build firmware
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+*'
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
jobs:
build-firmware:
runs-on: ubuntu-latest
name: Build firmware
steps:
- name: Check out this repository
uses: actions/checkout@v4
- name: Build Docker image
run: docker compose build --pull --build-arg APT_MIRROR="http://azure.archive.ubuntu.com/ubuntu/"
- name: Run docker container
run: docker compose up
- name: Upload firmware as artifact
uses: actions/upload-artifact@v4
with:
name: prawnblaster-firmware-${{ github.sha }}
path: build/prawnblaster/*.uf2
- name: Create release
if: (github.event_name == 'push' && contains(github.ref, '/tags'))
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
LICENSE.txt
build/prawnblaster/prawnblaster.uf2
build/prawnblaster/prawnblasteroverclock.uf2