ci: try upstream workaround #178
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: Publish documentation | |
on: | |
push: | |
branches: | |
- '*' | |
# - main | |
# tags: | |
# - v[0-9]+.[0-9]+.[0-9]+* | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # tag: v3.5.3 | |
- name: Fetch all git branches | |
run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/* | |
- uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # tag: v3.7.0 | |
with: | |
node-version: 14.x | |
- run: npm install --engine-strict --no-lockfile | |
- run: npm run docs:build | |
- uses: dsanders11/github-action-gh-pages@test-fix # TODO: SHA this | |
with: | |
defaultBranch: main | |
docsPath: typedoc | |
gitCommitEmail: 'electron-bot@users.noreply.github.com' | |
gitCommitMessage: 'Publish [skip ci]' | |
gitCommitUser: 'Electron Bot' | |
showUnderscoreFiles: true | |
versionDocs: true | |
env: | |
GH_PAGES_SSH_DEPLOY_KEY: ${{ secrets.DOCS_SSH_DEPLOY_KEY }} |