Skip to content

Commit

Permalink
env section can’t reference itself
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Mar 27, 2024
1 parent 4a8ceae commit 6b7c99a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
- "*.*.*"
branches:
- 'release/*'

env:
# Workaround for no ternary operator, use short-circuiting
VERSION: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}
MAC_PACKAGE: OpenCRAVAT.${{env.VERSION}}.pkg
WINDOWS_INSTALLER: OpenCRAVAT-${{env.VERSION}}.exe
DOCKER_TAG: ${{ secrets.DOCKER_USERNAME }}/opencravat:${{env.VERSION }}
DOCKER_ARCHIVE: opencravat-docker-${{ env.VERSION }}.tgz
PYPI_SDIST: open-cravat-${{ env.VERSION }}.tar.gz
MAC_PACKAGE: OpenCRAVAT.${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.pkg
WINDOWS_INSTALLER: OpenCRAVAT-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.exe
DOCKER_TAG: ${{ secrets.DOCKER_USERNAME }}/opencravat:${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}
DOCKER_ARCHIVE: opencravat-docker-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.tgz
PYPI_SDIST: open-cravat-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.tar.gz

jobs:
pypi:
Expand Down

0 comments on commit 6b7c99a

Please sign in to comment.