Skip to content

Commit da76bc3

Browse files
committed
Use MrKWatkins/writerside-build.
1 parent fbcf42f commit da76bc3

6 files changed

Lines changed: 19 additions & 72 deletions

File tree

.github/actions/build-documentation/action.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/actions/deploy-documentation/action.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: MrKWatkins/dotnet-build@main
2424
with:
2525
name: MrKWatkins.Ast
26-
directory: ./src
26+
directory: src
2727

2828
- name: Build Examples
2929
uses: MrKWatkins/dotnet-build@main
@@ -33,8 +33,6 @@ jobs:
3333
coverage-run-settings: coverage.runsettings
3434

3535
- name: Build Documentation
36-
uses: ./.github/actions/build-documentation
37-
38-
- name: Deploy Documentation
39-
if: ${{ github.ref == 'refs/heads/main' }}
40-
uses: ./.github/actions/deploy-documentation
36+
uses: MrKWatkins/writerside-build@main
37+
with:
38+
instance: MrKWatkins.Ast

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
required: true
99
type: string
1010

11+
permissions:
12+
checks: write
13+
contents: write
14+
id-token: write
15+
pages: write
16+
1117
jobs:
1218
Release:
1319
name: Release ${{ inputs.version }}
@@ -31,4 +37,11 @@ jobs:
3137
run: dotnet nuget push ./packages/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
3238

3339
- name: Create Release
34-
run: gh release create v${{ inputs.version }} --generate-notes
40+
run: gh release create v${{ inputs.version }} --generate-notes
41+
42+
- name: Deploy Documentation
43+
uses: MrKWatkins/writerside-build@main
44+
with:
45+
instance: MrKWatkins.Ast
46+
deploy: true
47+
version: ${{ inputs.version }}

doc/writerside.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
<images dir="images" web-path="images"/>
77
<categories src="c.list"/>
88
<vars src="v.list"/>
9-
<instance src="MrKWatkins.Ast.tree"/>
9+
<instance src="MrKWatkins.Ast.tree" version="main" />
1010
</ihp>

src/Ast.sln

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
2828
..\.github\workflows\codeql.yml = ..\.github\workflows\codeql.yml
2929
EndProjectSection
3030
EndProject
31-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "actions", "actions", "{830EE115-DF07-4B1E-BAA7-6527FE7E827A}"
32-
EndProject
33-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build-documentation", "build-documentation", "{CA1458CD-AF36-4CC0-8110-A63DCD33851C}"
34-
ProjectSection(SolutionItems) = preProject
35-
..\.github\actions\build-documentation\action.yml = ..\.github\actions\build-documentation\action.yml
36-
EndProjectSection
37-
EndProject
38-
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "deploy-documentation", "deploy-documentation", "{DF990584-4938-4AB1-B17F-1AF978FABD6A}"
39-
ProjectSection(SolutionItems) = preProject
40-
..\.github\actions\deploy-documentation\action.yml = ..\.github\actions\deploy-documentation\action.yml
41-
EndProjectSection
42-
EndProject
4331
Global
4432
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4533
Debug|Any CPU = Debug|Any CPU
@@ -58,8 +46,5 @@ Global
5846
GlobalSection(NestedProjects) = preSolution
5947
{C893FF4B-FA20-4B58-B7D3-3DA372503F01} = {0EE2E846-632C-4EA4-88D8-82A90776FC8D}
6048
{2DC33C7E-4983-471B-B34B-9FFCCB0A62F9} = {C893FF4B-FA20-4B58-B7D3-3DA372503F01}
61-
{830EE115-DF07-4B1E-BAA7-6527FE7E827A} = {C893FF4B-FA20-4B58-B7D3-3DA372503F01}
62-
{CA1458CD-AF36-4CC0-8110-A63DCD33851C} = {830EE115-DF07-4B1E-BAA7-6527FE7E827A}
63-
{DF990584-4938-4AB1-B17F-1AF978FABD6A} = {830EE115-DF07-4B1E-BAA7-6527FE7E827A}
6449
EndGlobalSection
6550
EndGlobal

0 commit comments

Comments
 (0)