From edec9a35e1f0029ef608199956f653901a86819a Mon Sep 17 00:00:00 2001 From: Evorp <3vorpgaming@gmail.com> Date: Sun, 23 Jun 2024 14:37:37 -0700 Subject: [PATCH] Revert "Reapply "test"" This reverts commit b0efcd98e325b95bcf626d7519b4e7766176cc4f. --- .github/workflows/create-pack.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/create-pack.yml diff --git a/.github/workflows/create-pack.yml b/.github/workflows/create-pack.yml new file mode 100644 index 000000000..70a82b37b --- /dev/null +++ b/.github/workflows/create-pack.yml @@ -0,0 +1,27 @@ +name: Create Pack +on: + push: + branches-ignore: + - master + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Get branch name + id: branch-name + uses: tj-actions/branch-names@v6.4 + + - name: Create Pack + uses: appleboy/ssh-action@v0.1.7 + with: + host: ${{ secrets.HOST }} + USERNAME: ${{ secrets.USERNAME }} + PORT: ${{ secrets.PORT }} + KEY: ${{ secrets.SSH }} + script: | + [ ! -d "./packs/Faithful-Java-32x/${{ steps.branch-name.outputs.current_branch }}" ] && exit 1 + cd "./packs/Faithful-Java-32x/${{ steps.branch-name.outputs.current_branch }}" + git pull + zip -r "Faithful 32x - ${{ steps.branch-name.outputs.current_branch }} Experimental.zip" . -x "*.git*" -x "*.github*" -x ".gitignore" + mv "Faithful 32x - ${{ steps.branch-name.outputs.current_branch }} Experimental.zip" "/var/www/html/database.faithfulpack.net/packs/32x-Java/Experimental" \ No newline at end of file