From 563fa50ae8983cf54b28ad8f2e9a737ebf907611 Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 3 Mar 2024 16:16:54 -0500 Subject: [PATCH 1/6] yml --- .github/workflows/craftkolf.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/craftkolf.yml diff --git a/.github/workflows/craftkolf.yml b/.github/workflows/craftkolf.yml new file mode 100644 index 0000000..8c75586 --- /dev/null +++ b/.github/workflows/craftkolf.yml @@ -0,0 +1,21 @@ +name: Run Craft Commands + +on: + push: + branches: + - main + +jobs: + build: + runs-on: self-hosted + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Craft environment + run: | + source /home/kolf/CraftRoot/craft/craftenv.sh + + - name: Run Craft command + run: craft kolf From 7171679ced8ab1526c36534106fe65d2173c02b3 Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 3 Mar 2024 16:18:44 -0500 Subject: [PATCH 2/6] both cmds at once --- .github/workflows/craftkolf.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/craftkolf.yml b/.github/workflows/craftkolf.yml index 8c75586..f4bd1b7 100644 --- a/.github/workflows/craftkolf.yml +++ b/.github/workflows/craftkolf.yml @@ -13,9 +13,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Set up Craft environment + - name: Set up Craft environment and run Craft command run: | - source /home/kolf/CraftRoot/craft/craftenv.sh - - - name: Run Craft command - run: craft kolf + source /home/kolf/CraftRoot/craft/craftenv.sh && craft kolf From 4b908cd7818658fa3e5f27123c0f5368e0b2cf32 Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 3 Mar 2024 16:39:10 -0500 Subject: [PATCH 3/6] complete kolfer --- .github/workflows/craftkolf.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/craftkolf.yml b/.github/workflows/craftkolf.yml index f4bd1b7..0f966b1 100644 --- a/.github/workflows/craftkolf.yml +++ b/.github/workflows/craftkolf.yml @@ -15,4 +15,8 @@ jobs: - name: Set up Craft environment and run Craft command run: | - source /home/kolf/CraftRoot/craft/craftenv.sh && craft kolf + source /home/kolf/CraftRoot/craft/craftenv.sh && cs kolf && git pull && craft --package kolf + - uses: actions/upload-artifact@v4 + with: + name: kolf-build-latest-appImage + path: path/to/artifact/world.txt From ca6e05f5f0c70a612786638c35ebf49e1339c92c Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 3 Mar 2024 16:43:07 -0500 Subject: [PATCH 4/6] upload AppImage --- .github/workflows/craftkolf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/craftkolf.yml b/.github/workflows/craftkolf.yml index 0f966b1..acb67b6 100644 --- a/.github/workflows/craftkolf.yml +++ b/.github/workflows/craftkolf.yml @@ -19,4 +19,4 @@ jobs: - uses: actions/upload-artifact@v4 with: name: kolf-build-latest-appImage - path: path/to/artifact/world.txt + path: /home/kolf/CraftRoot/tmp/kolf-23.08.4-linux-gcc-x86_64.AppImage From 4b7cb1786e6f1f90b2248a10784ad8a305f1838f Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 3 Mar 2024 16:48:21 -0500 Subject: [PATCH 5/6] Fully build, package, and upload kolf appImage --- .github/workflows/craftkolf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/craftkolf.yml b/.github/workflows/craftkolf.yml index acb67b6..3b920ff 100644 --- a/.github/workflows/craftkolf.yml +++ b/.github/workflows/craftkolf.yml @@ -15,7 +15,7 @@ jobs: - name: Set up Craft environment and run Craft command run: | - source /home/kolf/CraftRoot/craft/craftenv.sh && cs kolf && git pull && craft --package kolf + source /home/kolf/CraftRoot/craft/craftenv.sh && cs kolf && git pull && craft --compile --install --qmerge kolf && craft --package kolf - uses: actions/upload-artifact@v4 with: name: kolf-build-latest-appImage From 918a90381550d6c34b246a17b1aa18429c2b8ca3 Mon Sep 17 00:00:00 2001 From: Logan Date: Sun, 3 Mar 2024 16:53:30 -0500 Subject: [PATCH 6/6] update checkout --- .github/workflows/craftkolf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/craftkolf.yml b/.github/workflows/craftkolf.yml index 3b920ff..a32fae0 100644 --- a/.github/workflows/craftkolf.yml +++ b/.github/workflows/craftkolf.yml @@ -11,7 +11,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Craft environment and run Craft command run: |