mirror of
https://github.com/m-damien/VisualStoryWriting.git
synced 2026-08-29 01:39:29 +08:00
28 lines
688 B
YAML
28 lines
688 B
YAML
name: deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 23
|
|
- run: npm i
|
|
- run: npm run build
|
|
env:
|
|
BASE_URL: /VisualStoryWriting
|
|
DEV: true # Do not treat warnings as errors
|
|
- run: touch build/.nojekyll
|
|
- name: Push
|
|
uses: s0/git-publish-subdir-action@develop
|
|
env:
|
|
REPO: self
|
|
BRANCH: gh-pages
|
|
FOLDER: build
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
MESSAGE: "Build: ({sha}) {msg}"
|
|
SQUASH_HISTORY: true |