Skip to content

Commit

Permalink
Add empty env workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Jan 24, 2024
1 parent 191f209 commit 375357c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/empty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy Staging branch to Empty environment

on:
push:
branches:
- staging

jobs:

call-test-build:
uses: ./.github/workflows/test-build.yml
secrets: inherit
with:
sha: ${{ github.sha }}
environment: empty

call-test:
uses: ./.github/workflows/test.yml
needs: call-test-build
secrets: inherit
with:
sha: ${{ github.sha }}
environment: empty

call-deploy:
uses: ./.github/workflows/deploy.yml
needs: call-test
secrets: inherit
permissions:
pull-requests: write
with:
environment: empty
sha: ${{ github.sha }}
netlify-context: production
netlify-alias:
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ jobs:
CLOUDFLARE_R2_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
CLOUDFLARE_R2_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
REALM_GRAPHQL_API_KEY: ${{ secrets.REALM_GRAPHQL_API_KEY }}
IS_EMPTY_ENVIRONMENT: ${{ (inputs.environment == 'empty') && 'true' || 'false' }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 375357c

Please sign in to comment.