Skip to content

Commit

Permalink
ci: Change pack workflow trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonjgardner committed Nov 21, 2023
1 parent b28e34d commit cf7a0e8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 0 additions & 9 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
- main
paths:
- 'bedrock/**'
- 'java/**'
jobs:
assemble:
runs-on: ubuntu-latest
Expand All @@ -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
Expand All @@ -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

0 comments on commit cf7a0e8

Please sign in to comment.