Fix publish workflow

This commit is contained in:
David Boreham 2023-04-10 09:18:39 -06:00 committed by GitHub
parent c934ffe18e
commit e5cf52f188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,10 @@
name: Publish name: Publish
on: on:
pull_request:
branches: '*'
push: push:
branches: '*' branches:
- main
- publish-test
jobs: jobs:
publish: publish:
@ -16,9 +16,9 @@ jobs:
- name: "Get build info" - name: "Get build info"
id: build-info id: build-info
run: | run: |
./scripts/create_build_tag_file.sh build_tag=$(./scripts/create_build_tag_file.sh)
build_tag=$(cat ./app/data/build_tag.txt)
echo "build-tag=v${build_tag}" >> $GITHUB_OUTPUT echo "build-tag=v${build_tag}" >> $GITHUB_OUTPUT
echo "Build tag set to v${build_tag}"
- name: "Install Python" - name: "Install Python"
uses: cerc-io/setup-python@v4 uses: cerc-io/setup-python@v4
with: with:
@ -28,7 +28,7 @@ jobs:
- name: "Install shiv" - name: "Install shiv"
run: pip install shiv run: pip install shiv
- name: "Test things" - 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" - name: "Build local shiv package"
id: build id: build
run: | run: |