Skip to content

Commit 88f3838

Browse files
committed
[ci] build and deploy the site
1 parent 2b8080c commit 88f3838

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/hosting.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ jobs:
8383
# Second job to build the project and deploy it to Firebase Hosting
8484
build_and_deploy:
8585
needs: build_resume
86-
# Only run this job if the commit message does contain [ci]
8786
if: contains(github.event.head_commit.message, '[ci]') || (contains(github.event.head_commit.message, '[resume]') && needs.build_resume.result == 'success')
8887
runs-on: ubuntu-latest
8988
steps:
@@ -94,22 +93,19 @@ jobs:
9493
token: ${{ secrets.GITHUB_TOKEN }}
9594

9695
# Step to install Node.js and Yarn
97-
- name: Install Node
96+
- name: Set up Node.js
9897
uses: actions/setup-node@v3
9998
with:
100-
node-version: '16.x'
99+
node-version: '16'
100+
101+
- name: Enable Corepack
102+
run: corepack enable
103+
104+
- name: Install dependencies
105+
run: yarn install
101106

102-
# Step to install dependencies and build the project
103-
- name: Install Yarn dependencies
104-
uses: borales/actions-yarn@v4
105-
with:
106-
cmd: install
107107
- name: Build production bundle
108-
uses: borales/actions-yarn@v4
109-
with:
110-
cmd: build
111-
env:
112-
VITE_GH_API_KEY: ${{ secrets.VITE_GH_API_KEY }}
108+
run: yarn build
113109

114110
# Step to deploy to Firebase Hosting
115111
- name: Deploy to Firebase

0 commit comments

Comments
 (0)