Skip to content

Commit

Permalink
Backup: Itch.io Zip
Browse files Browse the repository at this point in the history
  • Loading branch information
thearchivalone committed Dec 6, 2024
1 parent 7f732af commit 8e45d8b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/github-action-mirror-sync.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 Master 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 }}

0 comments on commit 8e45d8b

Please sign in to comment.