Merge main

Former-commit-id: 4d1f339188
This commit is contained in:
David Boreham 2023-04-10 09:20:26 -06:00
commit 3cdad5b2d6

View File

@ -1,11 +1,10 @@
name: Publish
on:
pull_request:
push:
branches:
- main
push:
branches: '*'
- publish-test
jobs:
publish:
@ -17,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,15 +27,15 @@ 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: |
./scripts/build_shiv_package.sh
result_code=$?
echo "package-file=$(ls ./package/*)" >> $GITHUB_OUTPUT
exit $result_code
- name: "Test things"
run: echo "Build tag is: ${{ steps.build-info.outputs.build-tag }}"
exit $result_code
- name: "Stage artifact file"
run: |
cp ${{ steps.build.outputs.package-file }} ./laconic-so