mirror of
https://github.com/jhbruhn/butns.git
synced 2025-07-02 01:18:50 +00:00
Add release workflow
This commit is contained in:
parent
4ebd302598
commit
2dfd76746d
3 changed files with 37 additions and 0 deletions
1
.github/workflows/build-stls.yml
vendored
1
.github/workflows/build-stls.yml
vendored
|
@ -3,6 +3,7 @@ name: Build Case STLs
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-stls:
|
build-stls:
|
||||||
|
|
1
.github/workflows/compile-sketch.yml
vendored
1
.github/workflows/compile-sketch.yml
vendored
|
@ -3,6 +3,7 @@ name: Compile Firmware
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
- workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile-firmware:
|
compile-firmware:
|
||||||
|
|
35
.github/workflows/release.yml
vendored
Normal file
35
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
name: Publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-stls:
|
||||||
|
uses: ./.github/workflows/build-stls.yml
|
||||||
|
compile-sketch:
|
||||||
|
uses: ./.github/workflows/compile-sketch.yml
|
||||||
|
publish:
|
||||||
|
name: Publish binaries
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Download firmware artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: firmware
|
||||||
|
- name: Download case artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: case
|
||||||
|
- name: Download buttons artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: buttons
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
*.uf2
|
||||||
|
*.stl
|
Loading…
Reference in a new issue