Skip to content

Commit ac2635c

Browse files
authored
chore: update build command (#651)
1 parent 77399e0 commit ac2635c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/build.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ jobs:
2323
- name: Install dependencies
2424
run: npm install
2525

26-
- name: Build
27-
run: npm run build
28-
29-
- name: Add .nojekyll file
26+
- name: Determine build command
27+
id: build-command
3028
run: |
31-
touch ./dist/.nojekyll
29+
if [[ "${{ secrets.BUILD_COMMAND }}" == "build:h5-netlify" ]]; then
30+
echo "BUILD_COMMAND=build:h5-netlify" >> $GITHUB_ENV
31+
else
32+
echo "BUILD_COMMAND=build" >> $GITHUB_ENV
33+
fi
34+
35+
- name: Run build command
36+
run: npm run ${{ env.BUILD_COMMAND }}
3237

3338
- name: Deploy
3439
uses: JamesIves/github-pages-deploy-action@v4

0 commit comments

Comments
 (0)