From 4591537a5d1fb0be3a8a745edc4b0ddfdde2d688 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Thu, 14 Nov 2024 10:07:56 +0900 Subject: [PATCH] BUILD_RELEASE: - added artifacts download - enhanced forgejo publish (still disabled) --- .github/workflows/build_release.yml | 32 ++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 02b6dc55..3bacd30c 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -186,6 +186,7 @@ jobs: echo "[DEBUG] CHECKPOINT 8" - name: "Build flatpak: download only" + id: flatpak-download run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/flatpak_build_download_only.sh" # Sometimes flatpak download fails, in this case it tries a second time @@ -225,7 +226,6 @@ jobs: steps: - name: Generate a token for Rekku - if: ${{ github.repository == 'RetroDECK/RetroDECK' }} id: generate-rekku-token uses: actions/create-github-app-token@v1 with: @@ -234,6 +234,9 @@ jobs: repositories: "RetroDECK,Cooker" owner: "RetroDECK" + - name: Download all workflow run artifacts + uses: actions/download-artifact@v4.1.8 + # Determine if Target Repository is Main or not, in that case is a Cooker build - name: Determine target repository id: set-repo @@ -273,13 +276,22 @@ jobs: # As backup we're even publishing the build on our own selfhosted Fogejo instance # Forgejo Publish Job if main branch # Forgejo-publish: - # if: github.ref == 'refs/heads/main' + # runs-on: ubuntu-latest # needs: Build_RetroDECK - # uses: RetroDECK/components-template/.github/workflows/fogejo_publish_release.yml@main - # with: - # release_body: ${{ env.RELEASE_BODY }} - # artifacts: "*.flatpak,*.flatpak.sha,*Artifact.tar.gz" - # tag: ${{ env.TAG }} - # secrets: - # FORGEJO_TRIGGER_BUILD_TOKEN: ${{ secrets.FORGEJO_TRIGGER_BUILD_TOKEN }} - \ No newline at end of file + # env: + # TAG: ${{ needs.Build_RetroDECK.outputs.TAG }} + # RELEASE_BODY: ${{ needs.Build_RetroDECK.outputs.RELEASE_BODY }} + # MAKE_LATEST: ${{ needs.Build_RetroDECK.outputs.MAKE_LATEST }} + # steps: + + # - name: Download all workflow run artifacts + # id: download-artifacts + # uses: actions/download-artifact@v4.1.8 + + # - name: Forgejo-publish + # if: github.ref == 'refs/heads/main' + # uses: RetroDECK/components-template/.github/workflows/fogejo_publish_release.yml@main + # with: + # release_body: ${{ env.RELEASE_BODY }} + # artifacts: "*.flatpak,*.flatpak.sha,*Artifact.tar.gz" + # tag: ${{ env.TAG }} \ No newline at end of file