Skip to content

Commit

Permalink
Update mdbook.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hyder authored Dec 15, 2023
1 parent 19d0436 commit 3521467
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/mdbook.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
name: Publish Terraform OCI VCN Module Book
name: Publish Documentation
on:
# Rebuild docs when a release is published
release:
types: [published]
# Enable manual trigger
push:
branches: ["main"]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
build-and-publish-book:
runs-on: ubuntu-latest
Expand All @@ -18,7 +28,7 @@ jobs:
mkdir mdbook
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.34/mdbook-v0.4.34-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
echo `pwd`/mdbook >> $GITHUB_PATH
run: cargo install --locked --force [email protected] [email protected]
run: cargo install --locked --force [email protected] [email protected] [email protected] [email protected] [email protected]
- name: Deploy Book to GitHub Pages
run: |
# Build the HTML content
Expand Down

0 comments on commit 3521467

Please sign in to comment.