From a1fd07df425deadf596e477d80119aa6e36a4adf Mon Sep 17 00:00:00 2001 From: LeCuay Date: Wed, 9 Nov 2022 14:30:35 +0000 Subject: [PATCH] feat(ci): production CI for tags Added some logic on `env.CONTEXT` to match tags reference to be production. Changes to be committed: modified: .github/workflows/django.yml --- .github/workflows/django.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 5c1086f5..f1e29465 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -1,9 +1,10 @@ name: Oil & Rope CI -on: [push] +on: + push env: - CONTEXT: ${{ github.ref_name == 'master' && 'prod' || 'dev' }} + CONTEXT: ${{ contains(github.event.ref, 'tag') && 'prod' || github.ref_name == 'master' && 'prod' || 'dev' }} jobs: testing-and-linter: