You've already forked AstralRinth
forked from didirus/AstralRinth
deploy(frontend): actions is stupid
This commit is contained in:
14
.github/workflows/frontend-deploy.yml
vendored
14
.github/workflows/frontend-deploy.yml
vendored
@@ -12,6 +12,7 @@ on:
|
|||||||
- 'packages/assets/**/*'
|
- 'packages/assets/**/*'
|
||||||
- '**/wrangler.jsonc'
|
- '**/wrangler.jsonc'
|
||||||
- '**/pnpm-*.yaml'
|
- '**/pnpm-*.yaml'
|
||||||
|
- '.github/workflows/frontend-deploy.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -58,14 +59,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
if [ "${{ steps.meta.outputs.env }}" == "staging" ]; then
|
if [ "${{ steps.meta.outputs.env }}" == "staging" ]; then
|
||||||
echo "Injecting staging variables from wrangler.jsonc..."
|
echo "Injecting staging variables from wrangler.jsonc..."
|
||||||
jq -r '.env.staging.vars | to_entries[] | "export \(.key)=\(.value|@sh)"' wrangler.jsonc \
|
jq -r '.env.staging.vars | to_entries[] | "\(.key)=\(.value|@sh)"' wrangler.jsonc >> $GITHUB_ENV
|
||||||
| tee /dev/stderr \
|
|
||||||
| source /dev/stdin
|
|
||||||
else
|
else
|
||||||
echo "Injecting production variables from wrangler.jsonc..."
|
echo "Injecting production variables from wrangler.jsonc..."
|
||||||
jq -r '.vars | to_entries[] | "export \(.key)=\(.value|@sh)"' wrangler.jsonc \
|
jq -r '.vars | to_entries[] | "\(.key)=\(.value|@sh)"' wrangler.jsonc >> $GITHUB_ENV
|
||||||
| tee /dev/stderr \
|
|
||||||
| source /dev/stdin
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
@@ -74,10 +71,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Build frontend
|
- name: Build frontend
|
||||||
working-directory: ./apps/frontend
|
working-directory: ./apps/frontend
|
||||||
run: |
|
run: pnpm build
|
||||||
echo $BASE_URL
|
|
||||||
echo $BROWSER_BASE_URL
|
|
||||||
pnpm build
|
|
||||||
env:
|
env:
|
||||||
CF_PAGES_BRANCH: ${{ github.ref_name }}
|
CF_PAGES_BRANCH: ${{ github.ref_name }}
|
||||||
CF_PAGES_COMMIT_SHA: ${{ github.sha }}
|
CF_PAGES_COMMIT_SHA: ${{ github.sha }}
|
||||||
|
|||||||
Reference in New Issue
Block a user