Update workflows
This commit is contained in:
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user