Skip to content

Commit

Permalink
adjust publish.yml for wacs env var
Browse files Browse the repository at this point in the history
  • Loading branch information
wkelly17 committed Mar 14, 2024
1 parent 47aad29 commit 9f86a4c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set environment variable
run: |
if [ ${{ github.ref }} = 'refs/heads/read-prod' ]; then
echo "PUBLIC_WACS_URL=https://content.bibletranslationtools.org" >> $GITHUB_ENV
else
echo "PUBLIC_WACS_URL=https://wacs-dev.bibletranslationtools.org" >> $GITHUB_ENV
fi
# Run your project's build step
# - name: Build
# run: npm install && npm run build
Expand All @@ -31,6 +38,8 @@ jobs:
# ADD YOUR CUSTOM DEPENDENCY UPGRADE COMMANDS BELOW
run: |
pnpm install && pnpm build
env:
PUBLIC_WACS_URL: ${{ env.PUBLIC_WACS_URL }}
- name: Publish
uses: cloudflare/pages-action@1
with:
Expand Down

0 comments on commit 9f86a4c

Please sign in to comment.