(#12) Declare all Move public functions intended for capstone #17
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 Vuepress | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
diff: | |
runs-on: [ubuntu-latest] | |
outputs: | |
isDoc: ${{ steps.diff.outputs.isDoc }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Detect Changes | |
uses: "./.github/actions/diffs" | |
id: diff | |
deploy-gh-pages: | |
needs: diff | |
if: ${{ (needs.diff.outputs.isDoc == 'true') || (github.event_name == 'workflow_dispatch') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
run_install: true | |
- name: Copy pnpm dependency files | |
run: | | |
cp -f $GITHUB_WORKSPACE/docs/ci/pnpm-lock.yaml.ci $GITHUB_WORKSPACE/docs/pnpm-lock.yaml | |
cp -f $GITHUB_WORKSPACE/docs/ci/package.json.ci $GITHUB_WORKSPACE/docs/package.json | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.5.1 | |
cache: pnpm | |
cache-dependency-path: "docs/pnpm-lock.yaml" | |
- name: Build Docs | |
env: | |
NODE_OPTIONS: --max_old_space_size=8192 | |
run: |- | |
cd docs | |
pnpm run docs:build | |
> src/.vuepress/dist/.nojekyll | |
- name: Deploy Docs | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
# This is the branch where the docs are deployed to | |
branch: gh-pages | |
folder: docs/src/.vuepress/dist |