Skip to content

ci: scope down GitHub Token permissions #37

ci: scope down GitHub Token permissions

ci: scope down GitHub Token permissions #37

Workflow file for this run

# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT
name: CBMC training publication
on: [push, pull_request]
permissions:
contents: write
pages: write
jobs:
publish:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install mdbook
run: brew install mdbook
- name: Build documentation
run: cd docs && mdbook build && touch book/.nojekyll
- name: Publish documentation
if: ${{ github.event_name == 'push' && startsWith('refs/heads/main', github.ref) }}
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages
folder: docs/book/