mirror of
https://github.com/Faithful-Resource-Pack/Faithful-32x-Java.git
synced 2026-04-17 08:46:58 -04:00
Delete create-pack.yml
This commit is contained in:
30
.github/workflows/create-pack.yml
vendored
30
.github/workflows/create-pack.yml
vendored
@@ -1,30 +0,0 @@
|
|||||||
name: Create Pack
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches-ignore:
|
|
||||||
- master
|
|
||||||
- main
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Get branch name
|
|
||||||
id: branch-name
|
|
||||||
uses: tj-actions/branch-names@v5.2
|
|
||||||
|
|
||||||
- name: Create Pack
|
|
||||||
uses: appleboy/ssh-action@master
|
|
||||||
with:
|
|
||||||
host: ${{ secrets.HOST }}
|
|
||||||
USERNAME: ${{ secrets.USERNAME }}
|
|
||||||
PORT: ${{ secrets.PORT }}
|
|
||||||
KEY: ${{ secrets.SSH }}
|
|
||||||
script: |
|
|
||||||
cd "./packs/Faithful-Java-32x"
|
|
||||||
git pull
|
|
||||||
git checkout ${{ steps.branch-name.outputs.current_branch }}
|
|
||||||
zip -r Faithful-Java-32x-${{ steps.branch-name.outputs.current_branch }}-Experimental.zip . -x "*.git*" -x "*.github*" -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-${{ steps.branch-name.outputs.current_branch }}-Experimental.zip "/var/www/html/database.faithfulpack.net/packs/32x-Java/${{ steps.branch-name.outputs.current_branch }}"
|
|
||||||
Reference in New Issue
Block a user