Add to zurg 1000

This commit is contained in:
Ben Sarmiento
2023-11-21 20:05:48 +01:00
parent 8d9a1bfbe6
commit 88ebad1015

View File

@@ -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 }}