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

Commit

Permalink
ci: Create and publish hash file
Browse files Browse the repository at this point in the history
Automatically create and publish a hash file of all release artefacts which is compatible with Buildroot packages.
  • Loading branch information
zehnm authored May 21, 2020
1 parent c4dc9a3 commit b577f46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
APP_NAME: YIO-integration.dock
APP_ARCHITECTURE: RPi0
PROJECT_NAME: integration.dock
HASH_FILENAME: yio-integration-dock.hash

jobs:
build:
Expand Down Expand Up @@ -90,6 +91,7 @@
run: |
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.TIMESTAMP }}-${{ env.APP_ARCHITECTURE }}-debug.tar -C debug .
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.TIMESTAMP }}-${{ env.APP_ARCHITECTURE }}-release.tar -C release .
for filename in *.tar; do echo "sha256 `sha256sum $filename`" >> ${{ env.HASH_FILENAME }}; done;
- name: Create Pre-Release ${{ env.APP_VERSION }}
uses: "marvinpinto/action-automatic-releases@latest"
Expand All @@ -101,12 +103,14 @@
title: "Development Build ${{ env.APP_VERSION }}"
files: |
*.tar
${{ env.HASH_FILENAME }}
- name: Create GitHub release archives
if: "contains(github.ref, 'tags/v')"
run: |
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.APP_ARCHITECTURE }}-debug.tar -C debug .
tar cvf ${{ env.APP_NAME }}-v${{ env.APP_VERSION }}-${{ env.APP_ARCHITECTURE }}-release.tar -C release .
for filename in *.tar; do echo "sha256 `sha256sum $filename`" >> ${{ env.HASH_FILENAME }}; done;
- name: Create Release ${{ env.APP_VERSION }}
uses: "marvinpinto/action-automatic-releases@latest"
Expand All @@ -116,3 +120,4 @@
prerelease: false
files: |
*.tar
${{ env.HASH_FILENAME }}

0 comments on commit b577f46

Please sign in to comment.