This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
Section #55
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: Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build and deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm i -g moonwave@latest | |
- name: Publish | |
run: | | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
git config --global user.email "[email protected]" | |
git config --global user.name "github-actions-bot" | |
moonwave build --publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |