You've already forked AstralRinth
forked from didirus/AstralRinth
deploy(frontend): merge variable injection & build step
This commit is contained in:
7
.github/workflows/frontend-deploy.yml
vendored
7
.github/workflows/frontend-deploy.yml
vendored
@@ -57,7 +57,7 @@ jobs:
|
|||||||
working-directory: ./apps/frontend
|
working-directory: ./apps/frontend
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
|
|
||||||
- name: Inject build variables
|
- name: Build frontend
|
||||||
working-directory: ./apps/frontend
|
working-directory: ./apps/frontend
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ steps.meta.outputs.env }}" == "staging" ]; then
|
if [ "${{ steps.meta.outputs.env }}" == "staging" ]; then
|
||||||
@@ -67,10 +67,7 @@ jobs:
|
|||||||
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 | source /dev/stdin
|
jq -r '.vars | to_entries[] | "export \(.key)=\(.value|@sh)"' wrangler.jsonc | source /dev/stdin
|
||||||
fi
|
fi
|
||||||
|
pnpm build
|
||||||
- name: Build frontend
|
|
||||||
working-directory: ./apps/frontend
|
|
||||||
run: 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 }}
|
||||||
|
|||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -71,3 +71,5 @@ apps/labrinth/fixtures/demo
|
|||||||
|
|
||||||
*storybook.log
|
*storybook.log
|
||||||
storybook-static
|
storybook-static
|
||||||
|
|
||||||
|
.wrangler/
|
||||||
|
|||||||
Reference in New Issue
Block a user