File tree 1 file changed +25
-15
lines changed
1 file changed +25
-15
lines changed Original file line number Diff line number Diff line change 12
12
required : true
13
13
14
14
jobs :
15
- docfx :
15
+ build :
16
16
runs-on : windows-latest
17
17
name : Update DocFX documentation
18
18
steps :
19
19
- uses : actions/checkout@v2
20
20
with :
21
21
ref : ${{ github.events.inputs.tag }}
22
+
22
23
- name : Setup .NET
23
24
uses : actions/setup-dotnet@v1
24
25
with :
25
26
dotnet-version : ' 6.0.x'
27
+
26
28
- name : Build project
27
29
run : dotnet build -f netstandard2.0 src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
28
30
29
- # - uses: nikeee/[email protected]
30
- # name: Build Documentation
31
- # with:
32
- # args: docs/help/docfx.json
33
-
34
31
- name : Install docfx
35
32
run : choco install docfx
36
33
37
34
- name : Build Documentation
38
35
run : docfx docs/help/docfx.json --warningsAsErrors
39
36
40
- -
uses :
JamesIves/[email protected]
41
- name : Publish documentation to Github Pages
42
- with :
43
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
- BRANCH : gh-pages
45
- FOLDER : docs/help/_site
46
- TARGET_FOLDER : help
47
- CLEAN : false
48
-
49
37
- name : Upload documentation as artifact
50
38
uses : actions/upload-artifact@v2
51
39
with :
40
+ name : site
52
41
path : docs/help/_site
42
+
43
+ deploy :
44
+ needs : [build] # The second job must depend on the first one to complete before running and uses ubuntu-latest instead of windows.
45
+ runs-on : ubuntu-latest
46
+ steps :
47
+ - name : Checkout
48
+ uses : actions/checkout@v3
49
+
50
+ - name : Download Artifacts 🔻 # The built project is downloaded into the 'site' folder.
51
+ uses : actions/download-artifact@v1
52
+ with :
53
+ name : site
54
+
55
+ - name : Publish documentation to Github Pages
56
+ uses : JamesIves/github-pages-deploy-action@v4
57
+ with :
58
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
+ BRANCH : gh-pages
60
+ FOLDER : site
61
+ TARGET_FOLDER : help
62
+ CLEAN : false
You can’t perform that action at this time.
0 commit comments