Skip to content

v7.10.0

v7.10.0 #164

Workflow file for this run

name: API Documentation
on:
workflow_dispatch:
push:
tags:
- v7.**
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Generate GitHub App token
uses: electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
id: generate-token
with:
creds: ${{ secrets.GH_APP_CREDS }}
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
submodules: true
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}
- name: Get short SHA for HEAD
id: get-short-sha
run: echo "sha=$(git rev-parse --short=7 HEAD)" >> $GITHUB_OUTPUT
- name: Use Node.js LTS
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20.x
cache: yarn
- name: Build
shell: bash
run: |
yarn
yarn docs
- name: Prepare docs
uses: malept/github-action-gh-pages@650f950700faa00064f6fc9d2c4c801ec89b75b7 # tag: v1.4.1
with:
cname: js.electronforge.io
defaultBranch: main
noCommit: true
showUnderscoreFiles: true
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
- name: Commit docs
uses: dsanders11/github-app-commit-action@43de6da2f4d927e997c0784c7a0b61bd19ad6aac # v1.5.0
with:
fail-on-no-changes: false
message: 'deploy: ${{ steps.get-short-sha.outputs.sha }}'
token: ${{ steps.generate-token.outputs.token }}