Generate typedoc, push to another branch and serve via pages #13
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: Generate typedoc, push to another branch and serve via pages | |
on: | |
workflow_run: | |
workflows: ["testing"] | |
branches: [main] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and Push | |
steps: | |
- name: git-checkout | |
uses: actions/checkout@v2 | |
- name: Install all dependencies | |
run: npm install | |
- name: Docs | |
run: npm run docs | |
- name: Push | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: docs | |
FOLDER: docs | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MESSAGE: "Build: ({sha}) {msg}" |