docs(install): Fix brew install tap #631
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: Docs | |
on: | |
push: | |
branches: | |
- master | |
- docs | |
paths: | |
- '**.yml' | |
- docs/** | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '**.yml' | |
- docs/** | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
publish-doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: '0.91.2' | |
- name: Build theme | |
working-directory: ./docs/themes/geekdoc | |
run: | | |
npm install | |
npm run build | |
- name: Check out GitHub page repo | |
uses: actions/checkout@v4 | |
with: | |
repository: emacs-eask/emacs-eask.github.io | |
path: emacs-eask.github.io | |
token: ${{ secrets.PAT }} | |
- name: Build doc artifacts with Hugo | |
run: hugo --destination ../emacs-eask.github.io --minify | |
working-directory: docs | |
# TODO: Generate better commit message | |
- name: Publish doc artifacts | |
if: github.ref == 'refs/heads/master' | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git commit -F- <<-_UBLT_COMMIT_MSG_ | |
auto: ${{ github.event.head_commit.message }} | |
SourceCommit: https://github.com/emacs-eask/cli/commit/${{ github.sha }} | |
_UBLT_COMMIT_MSG_ | |
git push | |
working-directory: emacs-eask.github.io |