From cdffb06c27390690f5716c6f2a77fdb399cdb700 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Tue, 3 Dec 2024 15:47:05 +0100 Subject: [PATCH] test 6 --- .github/workflows/release.yml | 39 ++++++++++++++++------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1e95bc2..a2308ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 - \ No newline at end of file + 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 }} \ No newline at end of file