From f5eb4146b8adec0a2289bc66ec1ecf069341a304 Mon Sep 17 00:00:00 2001 From: Will Puckett Date: Fri, 27 Sep 2024 09:18:52 -0700 Subject: [PATCH] add release to action --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9c72a9a..3ad6fc4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,3 +5,19 @@ jobs: uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main with: archive_name: "ak3" + + release: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + permissions: + contents: write # allow workflow to commit to the repo + needs: build + steps: + - uses: actions/download-artifact@v4 + with: + name: ak3 + run-id: ${{ github.event.workflow_run.id }} + - name: Release + uses: softprops/action-gh-release@v2 + with: + files: ak3_*.uf2 \ No newline at end of file