Skip to content

Commit edec9a3

Browse files
committed
Revert "Reapply "test""
This reverts commit b0efcd9.
1 parent b0efcd9 commit edec9a3

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/create-pack.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create Pack
2+
on:
3+
push:
4+
branches-ignore:
5+
- master
6+
- main
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Get branch name
12+
id: branch-name
13+
uses: tj-actions/branch-names@v6.4
14+
15+
- name: Create Pack
16+
uses: appleboy/ssh-action@v0.1.7
17+
with:
18+
host: ${{ secrets.HOST }}
19+
USERNAME: ${{ secrets.USERNAME }}
20+
PORT: ${{ secrets.PORT }}
21+
KEY: ${{ secrets.SSH }}
22+
script: |
23+
[ ! -d "./packs/Faithful-Java-32x/${{ steps.branch-name.outputs.current_branch }}" ] && exit 1
24+
cd "./packs/Faithful-Java-32x/${{ steps.branch-name.outputs.current_branch }}"
25+
git pull
26+
zip -r "Faithful 32x - ${{ steps.branch-name.outputs.current_branch }} Experimental.zip" . -x "*.git*" -x "*.github*" -x ".gitignore"
27+
mv "Faithful 32x - ${{ steps.branch-name.outputs.current_branch }} Experimental.zip" "/var/www/html/database.faithfulpack.net/packs/32x-Java/Experimental"

0 commit comments

Comments
 (0)