Skip to content

Commit 2e4f86b

Browse files
committed
project: (github) update workflows
1 parent 8f899d2 commit 2e4f86b

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/push-dev.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ jobs:
3939

4040
- name: Push to hosting
4141
run: |
42-
git clone https://github.com/melxin/devious-hosting.git
43-
cp -r ./runelite-client/build/bootstrap/. ./devious-hosting
42+
git clone --depth 1 https://github.com/melxin/devious-hosting.git
43+
rsync -av --delete ./runelite-client/build/bootstrap/. ./devious-hosting
4444
cd devious-hosting
4545
4646
git config --global user.email "melxin@tutamail.com"
4747
git config --global user.name "Github Actions"
48+
git checkout master || git checkout -b master
4849
git add -A
4950
git commit -m 'Auto release - Client (Snapshot)'
5051
git push https://melxin:${{ secrets.REPO_PAT }}@github.com/melxin/devious-hosting.git master

.github/workflows/push-experimental.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ jobs:
3939

4040
- name: Push to hosting
4141
run: |
42-
git clone https://github.com/melxin/devious-hosting.git
43-
cp -r ./runelite-client/build/bootstrap/. ./devious-hosting
42+
git clone --depth 1 https://github.com/melxin/devious-hosting.git
43+
rsync -av --delete ./runelite-client/build/bootstrap/. ./devious-hosting
4444
cd devious-hosting
4545
4646
git config --global user.email "melxin@tutamail.com"
4747
git config --global user.name "Github Actions"
48+
git checkout master || git checkout -b master
4849
git add -A
4950
git commit -m 'Auto release - Client (Experimental)'
5051
git push https://melxin:${{ secrets.REPO_PAT }}@github.com/melxin/devious-hosting.git master

.github/workflows/push-master.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,13 @@ jobs:
3939

4040
- name: Push to hosting
4141
run: |
42-
git clone https://github.com/melxin/devious-hosting.git
43-
cp -r ./runelite-client/build/bootstrap/. ./devious-hosting
42+
git clone --depth 1 https://github.com/melxin/devious-hosting.git
43+
rsync -av --delete ./runelite-client/build/bootstrap/. ./devious-hosting
4444
cd devious-hosting
4545
4646
git config --global user.email "melxin@tutamail.com"
4747
git config --global user.name "Github Actions"
48+
git checkout master || git checkout -b master
4849
git add -A
4950
git commit -m 'Auto release - Client (Stable)'
5051
git push https://melxin:${{ secrets.REPO_PAT }}@github.com/melxin/devious-hosting.git master

0 commit comments

Comments
 (0)