feat: build and deploy docs to gh pages, #43 #1
Workflow file for this run
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: Build and Deploy Docs | ||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
- dev | ||
jobs: | ||
build-docs: | ||
name: Install JSDoc Dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
- name: Use NodeJS v16.14.2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.14.2 | ||
- name: Install jsdoc and build | ||
run: | | ||
chmod u+x scripts/build-docs.sh | ||
./scripts/build-docs.sh | ||
- name: Archive Development Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: out | ||
path: out/ph-municipalities/${{ env.version }} | ||
retention-days: 3 | ||
deploy-client: | ||
name: Deploy client to Github Pages | ||
needs: lint-client | ||
Check failure on line 36 in .github/workflows/deploy-docs.yml GitHub Actions / Build and Deploy DocsInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: out | ||
- name: List files for publish | ||
run: ls -l -a | ||
- name: Deploy to Github Pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./ | ||
publish_branch: gh-pages |