From 1559330fd7add1175f3ba1c3379e7848c74a1a49 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:44:14 -0600 Subject: [PATCH 1/3] Add test code Former-commit-id: a225d5034b5b9f221ad8671772f2f7356554e124 --- .gitea/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 0566f510..9c40a6fb 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -28,6 +28,8 @@ jobs: run: python3 --version - name: "Install shiv" run: pip install shiv + - name: "Test things" + run: echo "Build tag is: ${{ steps.build-info.outputs.build-tag }}" - name: "Build local shiv package" id: build run: | From d72dcb6c74bf3944dc78a910f2d19f9e0ef79f08 Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 07:48:22 -0600 Subject: [PATCH 2/3] Add test code Former-commit-id: c934ffe18e4c36e6926c287fb4d2b33150355f70 --- .gitea/workflows/publish.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 9c40a6fb..14e96ad8 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -2,8 +2,7 @@ name: Publish on: pull_request: - branches: - - main + branches: '*' push: branches: '*' From 7bcad7b93683f872675609e9933d16784e6c3ebe Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 09:18:39 -0600 Subject: [PATCH 3/3] Fix publish workflow Former-commit-id: e5cf52f188792d3ac3c09a4ce995d91d765b2d8e --- .gitea/workflows/publish.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 14e96ad8..f474d867 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -1,10 +1,10 @@ name: Publish on: - pull_request: - branches: '*' push: - branches: '*' + branches: + - main + - publish-test jobs: publish: @@ -16,9 +16,9 @@ jobs: - name: "Get build info" id: build-info run: | - ./scripts/create_build_tag_file.sh - build_tag=$(cat ./app/data/build_tag.txt) + build_tag=$(./scripts/create_build_tag_file.sh) echo "build-tag=v${build_tag}" >> $GITHUB_OUTPUT + echo "Build tag set to v${build_tag}" - name: "Install Python" uses: cerc-io/setup-python@v4 with: @@ -28,14 +28,14 @@ jobs: - name: "Install shiv" run: pip install shiv - name: "Test things" - run: echo "Build tag is: ${{ steps.build-info.outputs.build-tag }}" + run: echo "Build tag is ${{ steps.build-info.outputs.build-tag }}" - name: "Build local shiv package" id: build run: | ./scripts/build_shiv_package.sh result_code=$? echo "package-file=$(ls ./package/*)" >> $GITHUB_OUTPUT - exit $result_code + exit $result_code - name: "Stage artifact file" run: | cp ${{ steps.build.outputs.package-file }} ./laconic-so