HEIMDALLR DOC #21
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: HEIMDALLR DOC | |
on: workflow_dispatch | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
defaults: | |
run: | |
working-directory: docs | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest #运行环境 | |
name: Build | |
steps: | |
# check out the repository | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: 'docs/.vitepress/dist' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |