mirror of
https://github.com/Faithful-Resource-Pack/Faithful-32x-Java.git
synced 2026-04-17 08:46:58 -04:00
add automated pack creation
This commit is contained in:
15
.github/workflows/create-pack.yml
vendored
15
.github/workflows/create-pack.yml
vendored
@@ -1,5 +1,9 @@
|
||||
name: Create Pack
|
||||
on: [push]
|
||||
on:
|
||||
push:
|
||||
branches-ignore:
|
||||
- master
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -10,7 +14,7 @@ jobs:
|
||||
id: branch-name
|
||||
uses: tj-actions/branch-names@v5.2
|
||||
|
||||
- name: Creating Pack
|
||||
- name: Create Pack
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.HOST }}
|
||||
@@ -18,4 +22,9 @@ jobs:
|
||||
PORT: ${{ secrets.PORT }}
|
||||
KEY: ${{ secrets.SSH }}
|
||||
script: |
|
||||
echo "asdf ${{ steps.branch-name.outputs.current_branch }} hhhhhhh"
|
||||
cd "./packs/Faithful-Java-32x"
|
||||
git pull
|
||||
git checkout ${{ steps.branch-name.outputs.current_branch }}
|
||||
zip -r Faithful-Java-32x-Nightly.zip . -x "*.git*" -x ".gitignore"
|
||||
[ ! -d "/var/www/html/database.faithfulpack.net/packs/32x-Java/${{ steps.branch-name.outputs.current_branch }}" ] && mkdir "/var/www/html/database.faithfulpack.net/packs/32x-Java/${{ steps.branch-name.outputs.current_branch }}"
|
||||
mv Faithful-Java-32x-Nightly.zip "/var/www/html/database.faithfulpack.net/packs/32x-Java/${{ steps.branch-name.outputs.current_branch }}"
|
||||
Reference in New Issue
Block a user