diff options
Diffstat (limited to '.forgejo')
| -rw-r--r-- | .forgejo/workflows/build-iso.yml | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/.forgejo/workflows/build-iso.yml b/.forgejo/workflows/build-iso.yml index 80723a2..75e3db7 100644 --- a/.forgejo/workflows/build-iso.yml +++ b/.forgejo/workflows/build-iso.yml @@ -4,6 +4,14 @@ on: push: branches: ["main"] workflow_dispatch: + inputs: + release: + description: "ISO publikálása (feltöltés, release, Discord, weboldal)" + type: choice + options: + - "no" + - "yes" + default: "no" jobs: build-iso: @@ -175,7 +183,17 @@ jobs: fi echo "ISO library ellenorzes: OK" + - name: Upload ISO artifact (nem publikus) + if: success() + continue-on-error: true + uses: actions/upload-artifact@v4 + with: + name: raveos-iso + path: output/*.iso + retention-days: 7 + - name: Upload ISO to release server + if: success() && github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'yes' run: | set -euo pipefail ISO_FILE=$(ls output/*.iso | head -1) @@ -195,6 +213,7 @@ jobs: echo "ISO_NAME=${ISO_NAME}" >> "$GITHUB_ENV" - name: Create Forgejo Release with external link + if: success() && github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'yes' run: | set -euo pipefail @@ -248,7 +267,7 @@ jobs: done - name: Update Shlink short URL - if: success() + if: success() && github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'yes' env: SHLINK_URL: ${{ secrets.SHLINK_URL }} SHLINK_API_KEY: ${{ secrets.SHLINK_API_KEY }} @@ -273,7 +292,7 @@ jobs: -d "{\"longUrl\":\"${LONG_URL}\"}" || true - name: Discord notification - if: success() + if: success() && github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'yes' env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} TAG: ${{ env.TAG }} @@ -292,7 +311,7 @@ jobs: bash scripts/discord-notify.sh "${DISCORD_WEBHOOK}" "${TAG}" "${ISO_NAME}" "${ISO_SHA256}" - name: Update website release data (rp1-blog) - if: success() + if: success() && github.event_name == 'workflow_dispatch' && github.event.inputs.release == 'yes' env: RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} TAG: ${{ env.TAG }} |