-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
89 additions
and
13,804 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
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,32 @@ | ||
name: deploy-gh-pages | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'docs/**' | ||
|
||
jobs: | ||
build-and-deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x.x | ||
- name: Restore tools | ||
run: dotnet tool restore | ||
- name: make script executable | ||
run: chmod u+x build.sh | ||
- name: Build example docs | ||
run: ./build.sh buildDocs | ||
- name: deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: ./output # The folder the action should deploy. | ||
CLEAN: true # Automatically remove deleted files from the deploy branch |
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
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,51 @@ | ||
module DocumentationTasks | ||
|
||
open Helpers | ||
open ProjectInfo | ||
open BasicTasks | ||
|
||
open BlackFox.Fake | ||
|
||
let buildDocs = | ||
BuildTask.create "BuildDocs" [ buildSolution ] { | ||
printfn "building docs with stable version %s" stableVersionTag | ||
|
||
runDotNet | ||
(sprintf | ||
"fsdocs build --eval --clean --properties Configuration=Release --parameters fsdocs-package-version %s" | ||
stableVersionTag) | ||
"./" | ||
} | ||
|
||
let buildDocsPrerelease = | ||
BuildTask.create "BuildDocsPrerelease" [ setPrereleaseTag; buildSolution ] { | ||
printfn "building docs with prerelease version %s" prereleaseTag | ||
|
||
runDotNet | ||
(sprintf | ||
"fsdocs build --eval --clean --properties Configuration=Release --parameters fsdocs-package-version %s" | ||
prereleaseTag) | ||
"./" | ||
} | ||
|
||
let watchDocs = | ||
BuildTask.create "WatchDocs" [ buildSolution ] { | ||
printfn "watching docs with stable version %s" stableVersionTag | ||
|
||
runDotNet | ||
(sprintf | ||
"fsdocs watch --eval --clean --properties Configuration=Release --parameters fsdocs-package-version %s" | ||
stableVersionTag) | ||
"./" | ||
} | ||
|
||
let watchDocsPrerelease = | ||
BuildTask.create "WatchDocsPrerelease" [ setPrereleaseTag; buildSolution ] { | ||
printfn "watching docs with prerelease version %s" prereleaseTag | ||
|
||
runDotNet | ||
(sprintf | ||
"fsdocs watch --eval --clean --properties Configuration=Release --parameters fsdocs-package-version %s" | ||
prereleaseTag) | ||
"./" | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.