Merge pull request #47 from Xiphoseer/dependabot/npm_and_yarn/ws-6.2.3 #45
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
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
name: Deploy to GitHub pages | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Generate static files | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12.x' | |
- run: yarn install | |
- run: yarn run docs:build | |
- name: Upload github-pages Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./docs/.vuepress/dist | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: 'Deploy to GitHub Pages' | |
id: deployment | |
uses: actions/deploy-pages@v4 |