Skip to content

Add convenience Makefile in web subdirectory #147

Add convenience Makefile in web subdirectory

Add convenience Makefile in web subdirectory #147

Workflow file for this run

name: publish-website-dev
on:
push:
branches:
- dev
jobs:
# Same as publish-main but edited to publish from dev branch
publish-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: dev
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
cache-dependency-path: 'web/package-lock.json'
- run: |
cd web
npm install
npm run build -- --outDir='dist_dev' --base='/demoland-web/dev'
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./web/dist_dev
destination_dir: dev