-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish user manual on all pushes to
main
(#323)
- Loading branch information
Showing
3 changed files
with
40 additions
and
35 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,36 @@ | ||
--- | ||
# This workflow runs when PRs are merged and tags/builds/publishes a release. | ||
|
||
# Run when PRs to main are closed. | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
name: Build and publish a release | ||
|
||
jobs: | ||
github-pages: | ||
name: Publish user manual to GitHub Pages | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
extra_nix_config: | | ||
extra-experimental-features = nix-command flakes | ||
accept-flake-config = true | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build user manual | ||
run: | | ||
RESULT=$(nix build --no-link --print-out-paths --print-build-logs .#ghciwatch.user-manual) | ||
cp -r "$RESULT/share/ghciwatch/html-manual" ghciwatch-user-manual | ||
- name: Publish to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ghciwatch-user-manual/ |
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
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