movescript/.github/workflows/deploy-docs.yml

53 lines
1.0 KiB
YAML
Raw Permalink Normal View History

2022-12-20 19:41:31 +00:00
name: Publish Docs
on:
push:
branches: [ "main" ]
paths:
- docs/**
2022-12-20 19:41:31 +00:00
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
2022-12-20 19:41:31 +00:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
- name: Setup Pages
uses: actions/configure-pages@v2
2022-12-20 19:41:31 +00:00
- name: Install Dependencies
working-directory: ./docs
run: npm install
- name: Build Static HTML Site
working-directory: ./docs
run: npm run build
- name: Upload to Pages
uses: actions/upload-pages-artifact@v1
with:
path: ./docs/src/.vuepress/dist
2022-12-20 19:41:31 +00:00
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1