Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit d1d5a4d

Browse files
author
gitgitWi
committed
Fix/CI: modify GitHub Workflow for setting Function BaseURL
1 parent a20cf23 commit d1d5a4d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/firebase-hosting-merge.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@ name: Deploy to Firebase Hosting on merge
66
push:
77
branches:
88
- main
9+
env:
10+
VUE_APP_SECTORS_FUNCTION_BASEURL: "${{ secrets.VUE_APP_SECTORS_FUNCTION_BASEURL }}"
911
jobs:
1012
build_and_deploy:
1113
runs-on: ubuntu-latest
1214
steps:
1315
- uses: actions/checkout@v2
16+
- name: Cache
17+
uses: actions/cache@v2.1.6
18+
with:
19+
path: ~/.yarn
20+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21+
restore-keys: ${{ runner.os }}-node-
22+
- name: Use Node.js
23+
uses: actions/setup-node@v2.4.1
24+
with:
25+
node-version: "14.x"
1426
- run: echo "VUE_APP_LAST_BUILD=$(TZ="Asia/Seoul" date +'%Y-%m-%d %H:%M')" >> $GITHUB_ENV && echo $VUE_APP_LAST_BUILD
1527
- run: yarn install --frozen-lockfile --production && yarn build
1628
- uses: FirebaseExtended/action-hosting-deploy@v0

0 commit comments

Comments
 (0)