Skip to content

Commit

Permalink
Make a dev release and keep tag releases
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbUk committed Sep 12, 2022
1 parent 51dc0f4 commit 07d4df1
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/master_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: "master release"

on:
push:
paths:
- 'config/**'
branches:
- "master"

jobs:
build:
uses: "zmkfirmware/zmk/.github/workflows/build-user-config.yml@main"

release:
name: "Release"
runs-on: "ubuntu-latest"
needs: build
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@master
with:
name: firmware
path: build/artifacts

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
title: "Development Build"
automatic_release_tag: "latest"
files: |
build/artifacts/*.uf2
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
name: "tag release"

on:
push:
paths:
Expand All @@ -19,10 +22,10 @@ jobs:
with:
name: firmware
path: build/artifacts

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "latest"
files: |
build/artifacts/*.uf2

0 comments on commit 07d4df1

Please sign in to comment.