Update webpack.yml

This commit is contained in:
Clovis 2023-08-16 22:19:13 +02:00 committed by GitHub
parent 434b8aa7b4
commit 9009ded5bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,14 +32,16 @@ jobs:
- name: Build - name: Build
run: | run: |
# Build one time for release
export NODE_ENV=production export NODE_ENV=production
yarn yarn
yarn build yarn build
mv static dist mv static dist
zip -r static.zip dist zip -r static.zip dist
mkdir -p dist/.github/workflows/ # Build one time for showcase
cp .github/workflows/* dist/.github/workflows/ export NODE_ENV=development
export FE_SUBDIRECTORY=Mangane
yarn build
- name: Create Draft Release - name: Create Draft Release
id: create_release id: create_release
@ -70,4 +72,4 @@ jobs:
- name: Deploy 🚀 - name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4 uses: JamesIves/github-pages-deploy-action@v4
with: with:
folder: dist folder: static