aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-deploy.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/build-deploy.yaml b/.github/workflows/build-deploy.yaml
index 61541cd..a2ea586 100644
--- a/.github/workflows/build-deploy.yaml
+++ b/.github/workflows/build-deploy.yaml
@@ -38,7 +38,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v4
with:
- push: ${{ github.ref == github.event.repository.default_branch }}
+ push: ${{ github.ref == 'refs/heads/main' }}
cache-from: type=registry,ref=ghcr.io/python-discord/king-arthur:latest
cache-to: type=inline
tags: |
@@ -51,7 +51,7 @@ jobs:
name: Deploy
runs-on: ubuntu-latest
needs: build
- if: ${{ github.ref == github.event.repository.default_branch }}
+ if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Checkout code
uses: actions/checkout@v3