Skip to content

Commit

Permalink
fix: correct env per branch
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdef1cafe committed Feb 27, 2023
1 parent f215217 commit 41071ba
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cloudflare.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
on:
workflow_call:
branches:
- 'develop'
- 'release'
- 'yeet'
- 'main'
- 'private'

jobs:
deploy:
Expand All @@ -19,7 +25,8 @@ jobs:
- name: Yarn Install
run: yarn install --frozen-lockfile
- name: Build
run: yarn env dev && yarn build # TODO(0xdef1cafe): use branch name
# ref_name is branch name https://docs.github.com/en/actions/learn-github-actions/contexts#example-contents-of-the-github-context
run: yarn env ${{ github.ref_name }} && yarn build
# - name: Publish
# uses: cloudflare/pages-action@1
# with:
Expand All @@ -28,4 +35,4 @@ jobs:
# projectName: web-29e # e.g. 'my-project'
# directory: build # e.g. 'dist'
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
# branch: # TODO(0xdef1cafe): use branch name from actions context
# branch: ${{ github.ref_name }}

0 comments on commit 41071ba

Please sign in to comment.