diff --git a/.github/workflows/create-pack.yml b/.github/workflows/create-pack.yml new file mode 100644 index 000000000..6a0af72c3 --- /dev/null +++ b/.github/workflows/create-pack.yml @@ -0,0 +1,23 @@ +name: Create Pack +on: + push: + branches: + - '**' + - '!main' +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Create Pack + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.HOST }} + USERNAME: ${{ secrets.USERNAME }} + PORT: ${{ secrets.PORT }} + KEY: ${{ secrets.SSH }} + script: | + [ ! -d "./packs/${{ github.event.repository.name }}/${{ github.ref_name }}" ] && git clone "https://github.com/${{ github.repository }}" -b ${{ github.ref_name }} --single-branch "./packs/${{ github.event.repository.name }}/${{ github.ref_name }}" + cd "./packs/Faithful-Java-32x/${{ github.ref_name }}" + git pull + zip -r "Faithful 32x - ${{ github.ref_name }} Experimental.zip" . -x "*.git*" -x "*.github*" -x ".gitignore" + mv "Faithful 32x - ${{ github.ref_name }} Experimental.zip" "/var/www/html/database.faithfulpack.net/packs/32x-Java/Experimental" \ No newline at end of file