test 6
This commit is contained in:
parent
e3c8ecd971
commit
cdffb06c27
1 changed files with 18 additions and 21 deletions
39
.github/workflows/release.yml
vendored
39
.github/workflows/release.yml
vendored
|
@ -3,35 +3,21 @@ name: Pack and Release
|
||||||
on: push
|
on: push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
packwizInstall:
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: alpine
|
|
||||||
steps:
|
|
||||||
- name: Install Node and Git
|
|
||||||
run: |
|
|
||||||
apk update
|
|
||||||
apk add nodejs git
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
packwiz:
|
|
||||||
needs: setup
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: bazsalanszky/packwiz-installer
|
image: bazsalanszky/packwiz-installer
|
||||||
steps:
|
steps:
|
||||||
- name: Verify pack.toml existence
|
- name: Install Node
|
||||||
run: ls -al
|
run: apk add nodejs git
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
- name: Run packwiz installer
|
- name: Run packwiz installer
|
||||||
run: java -jar /packwiz-installer-bootstrap.jar -g "file://$PWD/pack.toml" || exit 1
|
run: java -jar /packwiz-installer-bootstrap.jar -g "file://$PWD/pack.toml" || exit 1
|
||||||
- name: Install zip
|
- name: Install zip
|
||||||
run: |
|
run: |
|
||||||
apk update
|
apk update
|
||||||
apk add zip
|
apk add zip
|
||||||
release:
|
|
||||||
needs: packwiz
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Pack mods.zip
|
- name: Pack mods.zip
|
||||||
run: cd mods && zip mods.zip *.jar
|
run: cd mods && zip mods.zip *.jar
|
||||||
- name: Upload mods Artifact
|
- name: Upload mods Artifact
|
||||||
|
@ -40,4 +26,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: mods
|
name: mods
|
||||||
path: mods/mods.zip
|
path: mods/mods.zip
|
||||||
|
deploy:
|
||||||
|
needs: packwizInstall
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Download mods Artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: mods
|
||||||
|
- name: Set up Kubectl
|
||||||
|
uses: actions/k8s-set-context@v1
|
||||||
|
with:
|
||||||
|
kubeconfig: ${{ secrets.KUBECONFIG }}
|
Loading…
Reference in a new issue