From cf7a0e82cdae74b18425f54a7fecd1a330804cbf Mon Sep 17 00:00:00 2001 From: Jason Gardner Date: Tue, 21 Nov 2023 13:07:33 -0600 Subject: [PATCH] ci: Change pack workflow trigger --- .github/workflows/java.yml | 25 +++++++++++++++++++++++++ .github/workflows/pack.yml | 9 --------- 2 files changed, 25 insertions(+), 9 deletions(-) create mode 100644 .github/workflows/java.yml diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml new file mode 100644 index 000000000..f51ab37bb --- /dev/null +++ b/.github/workflows/java.yml @@ -0,0 +1,25 @@ +name: Java Pack +on: + workflow_dispatch: + push: + branches: + - main + paths: + - 'java/pack/**' +jobs: + assemble: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Zip directories + run: | + mkdir dist + cp -r java/pack dist/java + cd dist/java + zip -0 -r ../PBR-JG.zip . + - name: Upload Java pack + uses: actions/upload-artifact@v2 + with: + name: PBR-JG + path: dist/*.zip diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index 946916b2a..51a63b57e 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -6,7 +6,6 @@ on: - main paths: - 'bedrock/**' - - 'java/**' jobs: assemble: runs-on: ubuntu-latest @@ -16,12 +15,9 @@ jobs: - name: Zip directories run: | mkdir dist - cp -r java dist cp -r bedrock/pack dist cp -r bedrock/addon dist cp -r bedrock/variety dist - cd dist/java - zip -0 -r ../PBR-JG.zip . cd ../pack zip -0 -r ../JG-RTX.mcpack . cd ../addon @@ -33,8 +29,3 @@ jobs: with: name: JG-RTX path: dist/*.mc* - - name: Upload Java pack - uses: actions/upload-artifact@v2 - with: - name: PBR-JG - path: dist/*.zip