Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
CI: yet another way to capture tag
Browse files Browse the repository at this point in the history
  • Loading branch information
jadonk committed Nov 5, 2021
1 parent 15be183 commit 0881b3b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/firmware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,26 @@ jobs:
path: |
sw/build/*
- name: Prepare Release
id: prepare
- name: Get tag
id: tag
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "::set-output name=TAG::${GITHUB_REF#refs/tags/}"
- name: Prepare release
id: prepare
if: startsWith(github.ref, 'refs/tags/')
env:
TAG: ${{ steps.tag.outputs.TAG }}
run: |
cd sw/
zip -r bcf-${TAG}.zip build
zip -r bcf-${{ env.TAG }}.zip build
- name: Create Release
- name: Create release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
TAG: ${{ steps.prepare.outputs.TAG }}
TAG: ${{ steps.tag.outputs.TAG }}
with:
files: |
sw/bcf-${{ env.TAG }}.zip

0 comments on commit 0881b3b

Please sign in to comment.