Skip to content

Commit

Permalink
Upadate - 12
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Bornholm authored and Ben Bornholm committed Dec 28, 2021
1 parent aef9b7c commit 520f2f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
- name: Create ZIP of build artifacts
uses: actions/upload-artifact@v2
id: create_zip_of_build_artifacts
with:
name: osctrl-binaries-${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}
path: bin
11 changes: 9 additions & 2 deletions .github/workflows/tagged-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,25 @@ jobs:
uses: actions/download-artifact@v2
with:
name: osctrl-binaries-${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}
needs: [create_zip_of_build_artifacts]
- name: List contents
run: ls -l
needs: [create_zip_of_build_artifacts]
- name: Unzip
run: unzip osctrl-binaries-${{ steps.vars.outputs.branch }}-${{ steps.vars.outputs.sha_short }}.zip
needs: [create_zip_of_build_artifacts]
- name: List contents
run: ls -l
needs: [create_zip_of_build_artifacts]
- name: Rename binary
id: rename_binary
run: mv osctrl-${{ matrix.components }}-linux-amd64.bin osctrl-${{ matrix.components }}-${{ github.ref }}-linux-amd64.bin

needs: [create_zip_of_build_artifacts]

######################################## Add build artifacts to release ########################################
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: 'osctrl-*.bin'
files: 'osctrl-*.bin'
needs: [create_zip_of_build_artifacts, rename_binary]

0 comments on commit 520f2f6

Please sign in to comment.