From b23369b193314729f3dedb7a1e440b5eb56754a5 Mon Sep 17 00:00:00 2001 From: Adrien Carpentier Date: Thu, 16 May 2024 10:46:37 +0900 Subject: [PATCH] ci: add environments in ci workflows --- .github/workflows/prod.yml | 2 ++ .github/workflows/staging.yml | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index ca5557d..906a669 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -9,6 +9,8 @@ jobs: deploy-prod: + environment: prod + name: Deploy to staging from ${{ github.ref_name }}/${{ github.sha }} runs-on: ubuntu-latest diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index c0a1932..a3858fd 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -6,10 +6,15 @@ on: - staging - feat/github-ci +env: + DAY_OF_WEEK: Monday + jobs: deploy-staging: + environment: staging + name: Deploy to staging from ${{ github.ref_name }}/${{ github.sha }} runs-on: ubuntu-latest