Skip to content

feat: revive gear.rs as a place for internal docs #3

feat: revive gear.rs as a place for internal docs

feat: revive gear.rs as a place for internal docs #3

Workflow file for this run

name: Publish
on:
pull_request:
branches: [master]
push:
branches: [master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "0.4.35"
- name: Build docs
run: mdbook build
- name: Setup GitHub Pages
# if: github.event_name == 'push'
uses: actions/configure-pages@v3
- name: Upload Pages artifact
# if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v2
with:
path: book
- name: Deploy to GitHub Pages
# if: github.event_name == 'push'
uses: actions/deploy-pages@v2