From 4a8658cc8cdedb3591ae05b273f5baeb39352a71 Mon Sep 17 00:00:00 2001 From: Aaron Shaw Date: Wed, 29 Mar 2023 15:25:01 +0100 Subject: [PATCH] Update push-to-prod-new-fleets-nebraos-cloud-draft.yml --- ...-to-prod-new-fleets-nebraos-cloud-draft.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/push-to-prod-new-fleets-nebraos-cloud-draft.yml b/.github/workflows/push-to-prod-new-fleets-nebraos-cloud-draft.yml index 1a451ada..945e600e 100644 --- a/.github/workflows/push-to-prod-new-fleets-nebraos-cloud-draft.yml +++ b/.github/workflows/push-to-prod-new-fleets-nebraos-cloud-draft.yml @@ -30,6 +30,8 @@ jobs: LATEST_GA=$FIRMWARE_VERSION GITHUB_BRANCH=$( echo "${{ github.ref }}" | sed 's/refs\/heads\///g' ) + echo "timestamp=$(date +'%s')" >> $GITHUB_ENV + echo "day=$(date +'%F')" >> $GITHUB_ENV echo "LATEST_GA=$LATEST_GA" >> $GITHUB_ENV echo "GITHUB_BRANCH=$GITHUB_BRANCH" >> $GITHUB_ENV @@ -53,6 +55,22 @@ jobs: nebraos_cloud: true balena_command: "deploy nebraltd/${{ env.REPO }} --debug --nocache --build --draft" + - name: Upload docker-compose.yml artifact + uses: actions/upload-artifact@v3 + with: + name: docker-compose.yml.${{ env.REPO }} + path: docker-compose.yml + + - name: Upload docker-compose.yml to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: docker-compose.yml + asset_name: docker-compose.yml.${{ env.REPO }} + tag: ${{ env.LATEST_GA }}-${{ env.day }} + overwrite: true + body: "This is helium-miner-software release ${{ env.LATEST_GA }}-${{ env.day }}" + - name: Trigger build action in ${{ env.REPO }} repo uses: peter-evans/repository-dispatch@v2 with: