From 9d461ebadbbca4105e7ad70c1627f016ebb1b3ea Mon Sep 17 00:00:00 2001 From: Ben Parsons <9parsonsb@gmail.com> Date: Tue, 4 Jul 2023 13:35:45 +1000 Subject: [PATCH 01/16] Update build.yml --- .gitea/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index a967548..add4314 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -21,4 +21,10 @@ jobs: - name: โœ… svelte-check run: npm run check - name: ๐Ÿ”จ Build project - run: npm run build \ No newline at end of file + run: npm run build + - name: upload artifact + run: | + tar -czf build.tar.gz build + curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ + --upload-file build.tar.gz \ + https://gitea.example.com/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.bin \ No newline at end of file -- 2.49.0 From f8f33a2a21120631f13cb9e78b36f7d1329a8a22 Mon Sep 17 00:00:00 2001 From: Ben Parsons <9parsonsb@gmail.com> Date: Tue, 4 Jul 2023 13:41:18 +1000 Subject: [PATCH 02/16] Update build.yml --- .gitea/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index add4314..8fa2dcf 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -27,4 +27,4 @@ jobs: tar -czf build.tar.gz build curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ --upload-file build.tar.gz \ - https://gitea.example.com/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.bin \ No newline at end of file + https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.bin \ No newline at end of file -- 2.49.0 From 5f95730f6d903b5eb4db78faee182f3066cc4f2a Mon Sep 17 00:00:00 2001 From: Ben Parsons <9parsonsb@gmail.com> Date: Tue, 4 Jul 2023 13:42:34 +1000 Subject: [PATCH 03/16] Update build.yml --- .gitea/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 8fa2dcf..cda0a6c 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -27,4 +27,5 @@ jobs: tar -czf build.tar.gz build curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ --upload-file build.tar.gz \ - https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.bin \ No newline at end of file + https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.tar.gz + echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.bin \ No newline at end of file -- 2.49.0 From 34a3590807b34e3fb864377100755d463cc7192f Mon Sep 17 00:00:00 2001 From: Ben Parsons <9parsonsb@gmail.com> Date: Tue, 4 Jul 2023 13:44:49 +1000 Subject: [PATCH 04/16] use sha rather then ref --- .gitea/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index cda0a6c..744bb87 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -27,5 +27,5 @@ jobs: tar -czf build.tar.gz build curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ --upload-file build.tar.gz \ - https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.tar.gz - echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.ref }}/build-${{ gitea.ref }}.bin \ No newline at end of file + https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz + echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.bin \ No newline at end of file -- 2.49.0 From c261cd24f05205d30c0e0f7e2f1e8674b1fe2a83 Mon Sep 17 00:00:00 2001 From: Ben Parsons <9parsonsb@gmail.com> Date: Tue, 4 Jul 2023 21:58:32 +1000 Subject: [PATCH 05/16] update workflows --- .gitea/workflows/build.yml | 2 +- .gitea/workflows/deploy.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 744bb87..a661c65 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -28,4 +28,4 @@ jobs: curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ --upload-file build.tar.gz \ https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz - echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.bin \ No newline at end of file + echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz \ No newline at end of file diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b4efe91..9ae48f2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -21,6 +21,9 @@ jobs: run: npm run check - name: ๐Ÿ”จ Build project run: npm run build + - run: ls -la build + - run: ls -la /www/ + - run: ls -la /www/svelte/ - name: ๐Ÿงน Clean Deploy Area run: rm -rf /www/svelte/build - name: ๐Ÿ“ฆ Deploy -- 2.49.0 From be7776790a77578ab792de40c2f65885cfd9fa31 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sat, 22 Jul 2023 08:10:56 -0400 Subject: [PATCH 06/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9ae48f2..88c838d 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -13,6 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: get artifact + run: | + curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ + https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz > build.tar.gz + https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz - name: ๐Ÿ”ง Setup node uses: https://github.com/actions/setup-node@v3 - name: ๐Ÿงฑ Install node packages -- 2.49.0 From f298cab1fb8fcf8aa7031d3011555e30e5b86e46 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sat, 22 Jul 2023 08:20:16 -0400 Subject: [PATCH 07/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 88c838d..6078fc4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: run: | curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz > build.tar.gz - https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz + echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz - name: ๐Ÿ”ง Setup node uses: https://github.com/actions/setup-node@v3 - name: ๐Ÿงฑ Install node packages -- 2.49.0 From bd07b2b6c78a8d488c0a14f944138deb7b214c24 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sat, 22 Jul 2023 08:34:31 -0400 Subject: [PATCH 08/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 6078fc4..1d26179 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -18,14 +18,9 @@ jobs: curl --user minijack:${{ secrets.PACKAGE_TOKEN }} \ https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz > build.tar.gz echo https://git.quartznet.info/api/packages/quartznet/generic/artifacts/ref-${{ gitea.sha }}/build-${{ gitea.sha }}.tar.gz - - name: ๐Ÿ”ง Setup node - uses: https://github.com/actions/setup-node@v3 - - name: ๐Ÿงฑ Install node packages - run: npm ci - - name: โœ… svelte-check - run: npm run check - - name: ๐Ÿ”จ Build project - run: npm run build + - name: extract artifact + run: | + tar -xvzf build.tar.gz - run: ls -la build - run: ls -la /www/ - run: ls -la /www/svelte/ -- 2.49.0 From f6c1d80f76d2d987daa6575561a3b564c1081336 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sat, 22 Jul 2023 09:43:17 -0400 Subject: [PATCH 09/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 1d26179..74d8b90 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -10,7 +10,7 @@ runs-on: ubuntu-latest:host jobs: deploy: needs: build - runs-on: ubuntu-latest + runs-on: ubuntu-latest:host steps: - uses: actions/checkout@v2 - name: get artifact -- 2.49.0 From 12b7ed1645390de689e7cbf39fba5ba93adca394 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sat, 22 Jul 2023 11:06:10 -0400 Subject: [PATCH 10/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 74d8b90..41726e0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,12 +5,12 @@ on: tags: - '*' -runs-on: ubuntu-latest:host +runs-on: self-hosted jobs: deploy: needs: build - runs-on: ubuntu-latest:host + runs-on: self-hosted steps: - uses: actions/checkout@v2 - name: get artifact -- 2.49.0 From 8e767d2b095d01d0987160df0c55a74dec1ab218 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sat, 22 Jul 2023 11:08:56 -0400 Subject: [PATCH 11/16] revert 12b7ed1645390de689e7cbf39fba5ba93adca394 revert Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 41726e0..74d8b90 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,12 +5,12 @@ on: tags: - '*' -runs-on: self-hosted +runs-on: ubuntu-latest:host jobs: deploy: needs: build - runs-on: self-hosted + runs-on: ubuntu-latest:host steps: - uses: actions/checkout@v2 - name: get artifact -- 2.49.0 From e6b070231d8230a59a2c87cbd7fe80c9ac364958 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sun, 23 Jul 2023 06:24:38 -0400 Subject: [PATCH 12/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 74d8b90..5606646 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,6 +5,7 @@ on: tags: - '*' +# Test runs-on: ubuntu-latest:host jobs: -- 2.49.0 From b521f31991e29400bbdb037418a4c89406275fdf Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sun, 23 Jul 2023 09:08:53 -0400 Subject: [PATCH 13/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 5606646..faaade6 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,13 +5,12 @@ on: tags: - '*' -# Test -runs-on: ubuntu-latest:host +runs-on: ubuntu-latest jobs: deploy: needs: build - runs-on: ubuntu-latest:host + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: get artifact -- 2.49.0 From 37a8a18c5d51706adab8b56955ac1aebfa16967e Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sun, 23 Jul 2023 09:30:26 -0400 Subject: [PATCH 14/16] Update .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index faaade6..0281c50 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,6 +25,6 @@ jobs: - run: ls -la /www/ - run: ls -la /www/svelte/ - name: ๐Ÿงน Clean Deploy Area - run: rm -rf /www/svelte/build + - run: rm -r /www/svelte/build - name: ๐Ÿ“ฆ Deploy run: mv build /www/svelte/ -- 2.49.0 From bf7eba8a0e1ebfffc74d954a4d779b2fc0e08bc9 Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sun, 23 Jul 2023 09:34:13 -0400 Subject: [PATCH 15/16] Fix typo --- .gitea/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0281c50..79e4571 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -25,6 +25,6 @@ jobs: - run: ls -la /www/ - run: ls -la /www/svelte/ - name: ๐Ÿงน Clean Deploy Area - - run: rm -r /www/svelte/build + run: rm -r /www/svelte/build - name: ๐Ÿ“ฆ Deploy run: mv build /www/svelte/ -- 2.49.0 From e447b42bf1fde3a6aa837fb07f4f8e6c8c4aa64a Mon Sep 17 00:00:00 2001 From: Chris Dill Date: Sun, 23 Jul 2023 09:47:56 -0400 Subject: [PATCH 16/16] Use clearer label for running on host --- .gitea/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 79e4571..cacb9a1 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -5,12 +5,12 @@ on: tags: - '*' -runs-on: ubuntu-latest +runs-on: selfhost jobs: deploy: needs: build - runs-on: ubuntu-latest + runs-on: selfhost steps: - uses: actions/checkout@v2 - name: get artifact @@ -25,6 +25,6 @@ jobs: - run: ls -la /www/ - run: ls -la /www/svelte/ - name: ๐Ÿงน Clean Deploy Area - run: rm -r /www/svelte/build + run: rm -rf /www/svelte/build - name: ๐Ÿ“ฆ Deploy run: mv build /www/svelte/ -- 2.49.0