Merge pull request #5 from jdevillard/feature/allow-centralpackage-ma… #19
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: Publish Documentation | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build_app: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "20.x" | |
registry-url: "https://registry.npmjs.org" | |
- name: Install gh-pages | |
run: | | |
npm install -g gh-pages@3.0.0 | |
- name: Install Dependencies | |
run: | | |
cd docs | |
npm i | |
cd .. | |
- name: Build Page | |
run: | | |
cd docs | |
npm run build | |
echo "blazor.piral.io" > .vitepress/dist/CNAME | |
cd .. | |
- name: Deploy App Shell | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
gh-pages -d "docs/.vitepress/dist" -u "github-actions-bot <support+actions@github.com>" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |