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 4077419
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/github-action-mirror-sync.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Sync repository to mirrors

env:
itchio_user: thearchivalone
itchio_project: BRS-PSP-Research-Initiative
itchio_channel: docs
zip: BRS-PSP-Research-Initiative-master.zip

on:
push:
tags-ignore:
Expand Down Expand Up @@ -151,3 +157,28 @@ 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: manleydev/butler-publish-itchio-action@master
env:
PACKAGE: ${{ env.zip }}
ITCH_USER: ${{ env.itchio_user }}
ITCH_GAME: ${{ env.itchio_project }}
CHANNEL: ${{ env.itchio_channel }}
VERSION: ${{ env.version }}
BUTLER_CREDENTIALS: ${{ secrets.ITCHIO_API_KEY }}

0 comments on commit 4077419

Please sign in to comment.