From d0dc89c3988b9435fab09afc72a607716dafcdd3 Mon Sep 17 00:00:00 2001 From: Brad Date: Thu, 5 Dec 2024 23:29:08 -0600 Subject: [PATCH] Backup: Itch.io Zip --- .../workflows/github-action-mirror-sync.yml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/.github/workflows/github-action-mirror-sync.yml b/.github/workflows/github-action-mirror-sync.yml index 8bd161e..08defcc 100644 --- a/.github/workflows/github-action-mirror-sync.yml +++ b/.github/workflows/github-action-mirror-sync.yml @@ -1,5 +1,10 @@ name: Sync repository to mirrors +env: + itchio_project: thearchivalone/BRS-PSP-Research-Initiative + ichio_channel: windows + zip: BRS-PSP-Research-Initiative-master.zip + on: push: tags-ignore: @@ -151,3 +156,27 @@ jobs: secret-key: ${{ secrets.IA_SECRET_KEY }} identifier: BRS-Research-Initiative-Current files: Backup.tar.gz + + itch: + runs-on: ubuntu-24.04 + steps: + - name: Checkout repository + id: checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Compress Repository + id: compress + run: + git archive --format=zip -o ${{ env.zip }} --prefix=$(basename $PWD)/ main + - name: Set Version + run: | + echo "version=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + - name: Upload ${{ matrix.preset }} to itch.io page + uses: robpc/itchio-upload-action@v1 + with: + path: ${{ env.zip }} + project: ${{ env.itchio_project }} + channel: ${{ env.itchio_channel }} + version: ${{ env.version }} + api-key: ${{ secrets.ITCHIO_API_KEY }}