Skip to content

Commit

Permalink
CI for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Sep 26, 2023
1 parent b9e5c95 commit 099fb6b
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion .github/workflows/on_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
client_pipeline:
name: Build Firmware
uses: ./.github/workflows/build_client.yml
create_release:
create_dev_release:
permissions:
contents: write
name: Create dev pre-release with artifacts
Expand Down Expand Up @@ -49,3 +49,32 @@ jobs:
run: |
git tag -f dev
git push --tags -f
create_release:
permissions:
contents: write
name: Create tagged release with artifacts
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs:
- firmware_pipeline
- client_pipeline
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Download release artifacts
uses: actions/download-artifact@v3
with:
name: release-artifacts
path: release-artifacts
- name: Upload to tagged release
uses: softprops/action-gh-release@v1
with:
body: |
Auto-Generated DFU packages for Release ${{ github.ref_name }}
Built from commit ${{ github.sha }}
name: Release ${{ github.ref_name }}
draft: false
target_commitish: ${{ github.sha }}
generate_release_notes: true
append_body: true
files: release-artifacts/*

0 comments on commit 099fb6b

Please sign in to comment.