Merge pull request #691 from interlay/dependabot/github_actions/actio… #324
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 js docs | |
on: push | |
jobs: | |
publish: | |
runs-on: [self-hosted, linux] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18" | |
- run: yarn install --frozen-lockfile | |
- run: npm run build | |
- run: sh generate_docs | |
- name: Deploy to GitHub Pages | |
if: github.ref == 'refs/heads/master' | |
uses: crazy-max/ghaction-github-pages@v3 | |
with: | |
target_branch: gh-pages | |
build_dir: docs | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |