-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adjust base deployment, and get preview rolling? * Slight DRY-ing. * Fix description. * Rework the local action dealio. Misunderstood the structure, whoops. * Add the shell bits... * Add other permission necessary for the comment business.
- Loading branch information
1 parent
c34ca6d
commit 804eda8
Showing
3 changed files
with
52 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: Build | ||
description: Setup to run and run mkdocs | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup build environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
cache: 'pip' | ||
- name: Install build requirements | ||
shell: bash | ||
run: pip install -r requirements.txt | ||
- name: Build docs | ||
shell: bash | ||
run: mkdocs build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: "Build docs preview" | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
concurrency: preview-${{ github.ref }} | ||
permissions: | ||
# Needed to update the preview branch. | ||
contents: write | ||
# Needed to write/maintain the comment | ||
pull-requests: write | ||
jobs: | ||
preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Build docs | ||
uses: ./.github/actions/build | ||
- name: Deploy docs preview | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: site |
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