Deploy #43
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
workflow_dispatch: | |
inputs: | |
tags: | |
description: 'Documentation update' | |
default: 'Doc update' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Checout submodule | |
- name: Checkout submodules | |
run: git submodule update --init --remote --recursive | |
# Install | |
- name: Package update | |
working-directory: ./demo | |
run: npm install | |
# Build | |
- name: Package build | |
working-directory: ./demo | |
run: sudo npm run build | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: ./demo/src/.vuepress/dist # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |