Skip to content

Commit 6b7c99a

Browse files
author
jhiggins@potomacitgroup.com
committed
env section can’t reference itself
1 parent 4a8ceae commit 6b7c99a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ on:
66
- "*.*.*"
77
branches:
88
- 'release/*'
9-
9+
1010
env:
1111
# Workaround for no ternary operator, use short-circuiting
1212
VERSION: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}
13-
MAC_PACKAGE: OpenCRAVAT.${{env.VERSION}}.pkg
14-
WINDOWS_INSTALLER: OpenCRAVAT-${{env.VERSION}}.exe
15-
DOCKER_TAG: ${{ secrets.DOCKER_USERNAME }}/opencravat:${{env.VERSION }}
16-
DOCKER_ARCHIVE: opencravat-docker-${{ env.VERSION }}.tgz
17-
PYPI_SDIST: open-cravat-${{ env.VERSION }}.tar.gz
13+
MAC_PACKAGE: OpenCRAVAT.${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.pkg
14+
WINDOWS_INSTALLER: OpenCRAVAT-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.exe
15+
DOCKER_TAG: ${{ secrets.DOCKER_USERNAME }}/opencravat:${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}
16+
DOCKER_ARCHIVE: opencravat-docker-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.tgz
17+
PYPI_SDIST: open-cravat-${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'DEV' }}.tar.gz
1818

1919
jobs:
2020
pypi:

0 commit comments

Comments
 (0)