Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-24.04
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
- name: Cache NuGet packages
uses: actions/cache@v5
with:
dotnet-version: 8.x
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.*proj', '**/*.props') }}
path: ${{ env.NUGET_PACKAGES }}
- run: dotnet tool restore
- run: dotnet docfx docs/docfx.json
- name: Upload artifact
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,20 @@ jobs:
permissions:
contents: write
runs-on: ubuntu-24.04
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Check out the sources
uses: actions/checkout@v6
- name: Set up .NET SDK
uses: actions/setup-dotnet@v5
- name: Cache NuGet packages
uses: actions/cache@v5
with:
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.*proj', '**/*.props') }}
path: ${{ env.NUGET_PACKAGES }}
- id: version
name: Get version
shell: pwsh
Expand Down
13 changes: 2 additions & 11 deletions scripts/github-actions.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ let workflows = [
name "Release"
yield! mainTriggers
onPushTags "v*"
job "nuget" [
dotNetJob "nuget" [
runsOn ubuntu
checkOut
jobPermission(PermissionKind.Contents, AccessKind.Write)

let configuration = "Release"
Expand Down Expand Up @@ -200,17 +199,9 @@ let workflows = [
group = "pages",
cancelInProgress = false
)
job "publish-docs" [
dotNetJob "publish-docs" [
environment(name = "github-pages", url = "${{ steps.deployment.outputs.page_url }}")
runsOn "ubuntu-24.04"
checkOut
step(
name = "Set up .NET SDK",
usesSpec = Auto "actions/setup-dotnet",
options = Map.ofList [
"dotnet-version", "8.x"
]
)
step(
run = "dotnet tool restore"
)
Expand Down