From 509477bafac201a8b9fb4c2b1478be92c6313424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Deniz=20=C5=9Eafak?= Date: Tue, 12 Aug 2025 16:49:56 +0300 Subject: [PATCH] Update test_publish.yml --- .github/workflows/test_publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_publish.yml b/.github/workflows/test_publish.yml index fbb80a4..c59c440 100644 --- a/.github/workflows/test_publish.yml +++ b/.github/workflows/test_publish.yml @@ -5,7 +5,7 @@ on: #release: # types: [published] # Build only - #push: + #push: it # branches: [main] # TODO - enable build on pull requests if build times can be reduced # pull_request: @@ -22,7 +22,7 @@ jobs: - name: Login to Github Container Registry # Only if we need to push an image - if: ${{ github.event_name == 'release' && github.event.action == 'published' }} + # if: ${{ github.event_name == 'release' && github.event.action == 'published' }} uses: docker/login-action@v3 with: registry: ghcr.io @@ -55,6 +55,7 @@ jobs: platforms: linux/amd64 # using the solution mentioned in https://github.com/denizsafak/abogen/issues/46 # Only push if we are publishing a release # push: ${{ github.event_name == 'release' && github.event.action == 'published' }} + push: true # Use a 'temp' tag, that won't be pushed, for non-release builds tags: ${{ env.IMAGE_REPOSITORY }}:${{ github.event.release.tag_name || 'latest' }} # Use a cache to reduce build times