diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fb1afc0..b3934d4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,6 +22,7 @@ concurrency: jobs: build: + environment: ${{ github.ref == 'refs/heads/master' && 'prod' || 'stage' }} runs-on: ubuntu-latest strategy: @@ -52,7 +53,7 @@ jobs: deploy: environment: - name: github-pages + name: ${{ github.ref == 'refs/heads/master' && 'github-pages' || 'github-pages-stage' }} url: ${{ vars.CNAME }} runs-on: ubuntu-latest