Skip to content

Commit

Permalink
ci: fix publish documentation workflow (#254)
Browse files Browse the repository at this point in the history
* ci: fix publish documentation workflow

* ci: switch back to malept/github-action-gh-pages
  • Loading branch information
dsanders11 authored Sep 11, 2023
1 parent 32211d4 commit e6a0158
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,28 @@ on:
tags:
- v[0-9]+.[0-9]+.[0-9]+*

permissions:
contents: read
permissions: {}

jobs:
docs:
runs-on: ubuntu-latest
permissions:
contents: write
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@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag: v3.6.0
- uses: actions/setup-node@bea5baf987ba7aa777a8a0b4ace377a21c45c381 # tag: v3.8.0
with:
node-version: 18.x
- run: yarn --frozen-lockfile
- run: yarn build:docs
- uses: docker://malept/gha-gh-pages:1.3.0
- uses: malept/github-action-gh-pages@e151760357583e2f9152f8e8c8658ceb3ccf3d64 # tag: v1.3.1
with:
gitCommitEmail: 'electron-bot@users.noreply.github.com'
gitCommitEmail: 'github-actions@github.com'
gitCommitMessage: 'Publish [skip ci]'
gitCommitUser: 'Electron Bot'
gitCommitUser: 'github-actions'
showUnderscoreFiles: true
versionDocs: true
env:
GH_PAGES_SSH_DEPLOY_KEY: ${{ secrets.GH_PAGES_SSH_DEPLOY_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e6a0158

Please sign in to comment.