diff --git a/.github/workflows/build-stls.yml b/.github/workflows/build-stls.yml index f8a91c0..bce1552 100644 --- a/.github/workflows/build-stls.yml +++ b/.github/workflows/build-stls.yml @@ -3,6 +3,7 @@ name: Build Case STLs on: - push - pull_request + - workflow_call: jobs: build-stls: diff --git a/.github/workflows/compile-sketch.yml b/.github/workflows/compile-sketch.yml index b8069c9..3ece511 100644 --- a/.github/workflows/compile-sketch.yml +++ b/.github/workflows/compile-sketch.yml @@ -3,6 +3,7 @@ name: Compile Firmware on: - push - pull_request + - workflow_call: jobs: compile-firmware: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..68fcf3a --- /dev/null +++ b/.github/workflows/release.yml @@ -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 \ No newline at end of file