Update workflows

This commit is contained in:
Ben Sarmiento
2023-11-21 21:01:16 +01:00
parent 03b189731c
commit a068f64c99
2 changed files with 20 additions and 11 deletions

View File

@@ -84,26 +84,35 @@ jobs:
name: compiled-binaries name: compiled-binaries
path: compressed_artifacts path: compressed_artifacts
- name: Setup git - name: Publish to zurg-testing
if: startsWith(github.ref, 'refs/tags/v')
run: | run: |
git config --global user.name "Zurg" git config --global user.name "Zurg"
git config --global user.email "zurg@debridmediamanager.com" git config --global user.email "zurg@debridmediamanager.com"
git lfs install
- name: Clone target repository - name: Publish to zurg-1000
run: | run: |
git clone https://x-access-token:${{ secrets.TOKEN }}@github.com/debridmediamanager/zurg-1000.git git clone https://x-access-token:${{ secrets.TOKEN }}@github.com/debridmediamanager/zurg-1000.git
cd zurg-1000 cd zurg-1000
git lfs install
- name: Copy artifacts to target repository
run: |
mkdir -p zurg-1000/releases/${{ steps.version.outputs.version }} mkdir -p zurg-1000/releases/${{ steps.version.outputs.version }}
cp compressed_artifacts/* zurg-1000/releases/${{ steps.version.outputs.version }} cp -fR 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 }} cd zurg-1000/releases/${{ steps.version.outputs.version }}
git lfs track "*.zip" git lfs track "*.zip"
git add . git add .
git commit -m "Release ${{ steps.version.outputs.version }}" git commit -m "Release ${{ steps.version.outputs.version }}"
git push 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

View File

@@ -3,7 +3,7 @@ name: Build Docker Image
on: on:
push: push:
tags: tags:
- 'v*' - '*'
jobs: jobs:
build-and-push-image: build-and-push-image: