diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 58a344a..b40af98 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,26 +84,35 @@ jobs: name: compiled-binaries path: compressed_artifacts - - name: Setup git + - name: Publish to zurg-testing + if: startsWith(github.ref, 'refs/tags/v') run: | git config --global user.name "Zurg" git config --global user.email "zurg@debridmediamanager.com" + git lfs install - - name: Clone target repository + - name: Publish to zurg-1000 run: | git clone https://x-access-token:${{ secrets.TOKEN }}@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: | + cp -fR compressed_artifacts/* zurg-1000/releases/${{ steps.version.outputs.version }} cd zurg-1000/releases/${{ steps.version.outputs.version }} git lfs track "*.zip" git add . git commit -m "Release ${{ steps.version.outputs.version }}" git push + + + - name: Publish to zurg-testing + if: startsWith(github.ref, 'refs/tags/v') + run: | + git clone https://x-access-token:${{ secrets.TOKEN }}@github.com/debridmediamanager/zurg-testing.git + cd zurg-testing + mkdir -p zurg-testing/releases/${{ steps.version.outputs.version }} + cp -fR compressed_artifacts/* zurg-testing/releases/${{ steps.version.outputs.version }} + cd zurg-testing/releases/${{ steps.version.outputs.version }} + git lfs track "*.zip" + git add . + git commit -m "Release ${{ steps.version.outputs.version }}" + git push diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index b68a3dd..301f01d 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -3,7 +3,7 @@ name: Build Docker Image on: push: tags: - - 'v*' + - '*' jobs: build-and-push-image: