Skip to content

Update build.yml

Update build.yml #4

Workflow file for this run

name: Stage
on:
push:
branches:
- devpage
workflow_dispatch:
jobs:
build-app-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3.6.0
- uses: actions/cache@v3
id: cache
with:
path: node_modules
key: node_modules-${{ hashFiles('package-lock.json') }}-18
- run: npm ci
if: steps.cache.outputs.cache-hit != 'true'
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: app-dev
path: dist
deploy:
runs-on: ubuntu-latest
needs:
- build-app-dev
steps:
- uses: actions/download-artifact@v3
with:
name: app-dev
path: dist
- uses: peaceiris/actions-gh-pages@v3.9.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
destination_dir: beta
keep_files: true