Skip to content

Commit

Permalink
Do not make latest if pre
Browse files Browse the repository at this point in the history
  • Loading branch information
vycius committed Jul 22, 2024
1 parent 2533255 commit 74444f9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
id: docker
with:
docker-image: ghcr.io/govlt/national-boundaries-api
environment: ${{ startsWith(github.ref, 'refs/tags/') && 'stable' || 'preview' }}
environment: ${{ contains(github.ref, 'pre') && 'preview' || 'stable' }}
no-cache: true
push: true
cache-from: ''
Expand Down Expand Up @@ -67,9 +67,8 @@ jobs:

- name: Upload artifacts to GitHub release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
make_latest: true
make_latest: ${{ contains(github.ref, 'pre') && 'false' || 'true' }}
files: |
app/boundaries.sqlite
app/data-source-checksums.txt
Expand Down

0 comments on commit 74444f9

Please sign in to comment.