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
|
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
|
||||||
|
|||||||
2
.github/workflows/build_docker.yml
vendored
2
.github/workflows/build_docker.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user