File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- ' main'
6
+ permissions :
7
+ contents : read
8
+ pages : write
9
+ id-token : write
6
10
jobs :
7
11
Build :
8
12
runs-on : ubuntu-latest
9
13
steps :
10
14
- uses : actions/checkout@v2
11
15
with :
12
- token : ${{ secrets.PUSHABLE_GITHUB_TOKEN }}
16
+ submodules : ' true '
13
17
- name : Setup .NET 5.0
14
18
uses : actions/setup-dotnet@v1
15
19
with :
@@ -22,19 +26,19 @@ jobs:
22
26
uses : actions/setup-dotnet@v1
23
27
with :
24
28
dotnet-version : 7.0.102
25
- - name : Checkout Website Branch
26
- run : |
27
- git fetch --all
28
- git config --local user.email "[email protected] "
29
- git config --local user.name "The Silk.NET Automaton"
30
- git merge --allow-unrelated-histories -s ours origin/ci/github-pages
31
- git checkout ci/github-pages
32
- git reset --hard main
33
- git submodule init
34
29
- name : Run Statiq
35
30
run : dotnet run -c Release --project src/Website/Silk.NET.Statiq/Silk.NET.Statiq.csproj -- -l debug --nocache
36
- - name : Push to Website Branch
37
- run : |
38
- git add -f docs/
39
- git commit -am "Push latest built GitHub Pages site"
40
- git push
31
+ - name : Upload artifact
32
+ uses : actions/upload-pages-artifact@v1
33
+ with :
34
+ path : " docs"
35
+ Deploy :
36
+ environment :
37
+ name : github-pages
38
+ url : ${{ steps.deployment.outputs.page_url }}
39
+ runs-on : ubuntu-latest
40
+ needs : Build
41
+ steps :
42
+ - name : Deploy to GitHub Pages
43
+ id : deployment
44
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments