From 355c3e179e5331232fe8083cd94f8507878d759b Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:02:05 -0600 Subject: [PATCH 1/8] Add test code --- .gitea/workflows/publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 32aec8ea..d31ac310 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -36,7 +36,9 @@ jobs: ./scripts/build_shiv_package.sh result_code=$? echo "package-file=$(ls ./package/*)" >> $GITHUB_OUTPUT - exit $result_code + exit $result_code + - name: "Test things" + run: echo "Build tag is: ${{ steps.build-info.outputs.build-tag }}" - name: "Stage artifact file" run: | cp ${{ steps.build.outputs.package-file }} ./laconic-so -- 2.45.2 From d01b2215c42084852f845de1abe853b00860bb87 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:09:56 -0600 Subject: [PATCH 2/8] Add file to force a job --- force-build.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 force-build.md diff --git a/force-build.md b/force-build.md new file mode 100644 index 00000000..b774149c --- /dev/null +++ b/force-build.md @@ -0,0 +1,2 @@ +# Build + -- 2.45.2 From 77d5c8e9ea2770af343d19d8be31aae0aa160696 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:20:51 -0600 Subject: [PATCH 3/8] Force build --- force-build.md | 1 + 1 file changed, 1 insertion(+) diff --git a/force-build.md b/force-build.md index b774149c..044a1392 100644 --- a/force-build.md +++ b/force-build.md @@ -1,2 +1,3 @@ # Build +Again -- 2.45.2 From 32198aba12f0d9cec35598c05db0fd0345b01d0e Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:29:34 -0600 Subject: [PATCH 4/8] Force build --- force-build.md | 1 + 1 file changed, 1 insertion(+) diff --git a/force-build.md b/force-build.md index 044a1392..ae88b6ee 100644 --- a/force-build.md +++ b/force-build.md @@ -1,3 +1,4 @@ # Build Again +Again -- 2.45.2 From 008f42ad3885d1d246bd31de54d6431501b183ab Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:35:55 -0600 Subject: [PATCH 5/8] Try quotes --- .gitea/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 47d13374..0e5dc963 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -6,7 +6,7 @@ on: - main push: branches: - - publish-test + - 'publish-test' jobs: publish: -- 2.45.2 From df37e0328709f4b1408014391af3913a8a0c8ad6 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:41:02 -0600 Subject: [PATCH 6/8] Force build --- force-build.md | 1 + 1 file changed, 1 insertion(+) diff --git a/force-build.md b/force-build.md index ae88b6ee..ec8b5491 100644 --- a/force-build.md +++ b/force-build.md @@ -2,3 +2,4 @@ Again Again +Again -- 2.45.2 From f5c2e280655883bbbfd6a90b776e8a930c736ad4 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 11:43:04 -0600 Subject: [PATCH 7/8] Workaround for ref being different in production --- .gitea/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 08e63bb3..c86713ce 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -41,5 +41,6 @@ jobs: with: tag_name: ${{ steps.build-info.outputs.build-tag }} # On the publish test branch, mark our release as a draft - draft: ${{ github.ref == 'refs/heads/publish-test' }} + # Hack using endsWith to workaround Gitea sometimes sending "publish-test" vs "refs/heads/publish-test" + draft: ${{ endsWith('publish-test', github.ref ) }} files: ./laconic-so -- 2.45.2 From 0b6578a18227b260b4e39782f3d37cc967ff43da Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 11:46:52 -0600 Subject: [PATCH 8/8] Remove test file --- force-build.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 force-build.md diff --git a/force-build.md b/force-build.md deleted file mode 100644 index ec8b5491..00000000 --- a/force-build.md +++ /dev/null @@ -1,5 +0,0 @@ -# Build - -Again -Again -Again -- 2.45.2