From 793927258266f1e9f34c076a6b058ed898b2165c Mon Sep 17 00:00:00 2001 From: Tom Beckenham <34339192+tombeckenham@users.noreply.github.com> Date: Mon, 20 Jan 2025 13:11:48 +1100 Subject: [PATCH] Now checks if the ref_type is tag and uses production settings --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 514a8e60..c30a15f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,13 @@ on: jobs: build: runs-on: ubuntu-latest - environment: ${{ github.ref_name == 'master' && 'production' || github.ref_name == 'dev' && 'staging' || 'development' }} + environment: >- + ${{ + github.ref_type == 'tag' && 'production' || + github.ref_name == 'master' && 'production' || + github.ref_name == 'dev' && 'staging' || + 'development' + }} strategy: matrix: