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
|
||||
|
||||
jobs:
|
||||
setup:
|
||||
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
|
||||
packwizInstall:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: bazsalanszky/packwiz-installer
|
||||
steps:
|
||||
- name: Verify pack.toml existence
|
||||
run: ls -al
|
||||
- name: Install Node
|
||||
run: apk add nodejs git
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Run packwiz installer
|
||||
run: java -jar /packwiz-installer-bootstrap.jar -g "file://$PWD/pack.toml" || exit 1
|
||||
- name: Install zip
|
||||
run: |
|
||||
apk update
|
||||
apk add zip
|
||||
release:
|
||||
needs: packwiz
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
apk add zip
|
||||
- name: Pack mods.zip
|
||||
run: cd mods && zip mods.zip *.jar
|
||||
- name: Upload mods Artifact
|
||||
|
@ -40,4 +26,15 @@ jobs:
|
|||
with:
|
||||
name: mods
|
||||
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