Skip to content

Commit

Permalink
Either webpack nor vitejs is okay
Browse files Browse the repository at this point in the history
  • Loading branch information
nguoianphu committed Aug 22, 2021
1 parent fccbcdd commit 2d8e6d8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,11 @@ jobs:
cd $GITHUB_WORKSPACE
7z a -tzip -p${MY_ZIP_PASSWORD} keys.zip -r keys
- name: Build web to deploy to github page - webpack
if: ${{ github.ref != 'refs/heads/vitejs' }}
- name: Build web to deploy to github page - webpack or vitejs
run: |
rm -rf dist
cp -Rf webpack.config.gh-pages.js webpack.config.js
npm run build
- name: Build web to deploy to github page - vitejs
if: ${{ github.ref == 'refs/heads/vitejs' }}
run: |
rm -rf dist
cp -Rf vite.config.githubpage.ts vite.config.ts
cp -Rf webpack.config.gh-pages.js webpack.config.js || true
cp -Rf vite.config.githubpage.ts vite.config.ts || true
npm run build
- name: Deploy build/dist folder to github pages
Expand Down

0 comments on commit 2d8e6d8

Please sign in to comment.