From 88ebad1015c5a4035a95ab18fd9ce3e6612164b0 Mon Sep 17 00:00:00 2001 From: Ben Sarmiento Date: Tue, 21 Nov 2023 20:05:48 +0100 Subject: [PATCH] Add to zurg 1000 --- .github/workflows/build.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e70643a..0ba9a14 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -91,3 +91,33 @@ jobs: GITHUB_TOKEN: ${{ secrets.PAT }} with: artifacts: "compressed_artifacts/*.zip" + makeLatest: true + removeArtifacts: true + replacesArtifacts: true + skipIfReleaseExists: true + + - name: Setup git + run: | + git config --global user.name "Zurg" + git config --global user.email "zurg@debridmediamanager.com" + + - name: Clone target repository + run: | + git clone https://$PAT@github.com/debridmediamanager/zurg-1000.git + cd zurg-1000 + git lfs install + + - name: Copy artifacts to target repository + run: | + mkdir -p zurg-1000/releases/${{ steps.version.outputs.version }} + cp compressed_artifacts/* zurg-1000/releases/${{ steps.version.outputs.version }} + + - name: Commit and push artifacts to target repository + run: | + cd zurg-1000/releases/${{ steps.version.outputs.version }} + git lfs track "*.zip" + git add . + git commit -m "Release ${{ steps.version.outputs.version }}" + git push + env: + PAT: ${{ secrets.PAT }}