File tree Expand file tree Collapse file tree 3 files changed +40
-27
lines changed Expand file tree Collapse file tree 3 files changed +40
-27
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
- # on:
3
- # push:
4
- # branches: [master]
5
- # pull_request:
6
- # branches: [master]
7
- # concurrency:
8
- # group: ${{ github.workflow }}-${{ github.ref }}
9
- # cancel-in-progress: true
10
-
11
2
on :
12
- workflow_run :
13
- workflows : ["release-minor-trigger"]
14
- types :
15
- - completed
3
+ push :
4
+ branches : [master]
5
+ pull_request :
6
+ branches : [master]
7
+ concurrency :
8
+ group : ${{ github.workflow }}-${{ github.ref }}
9
+ cancel-in-progress : true
16
10
17
11
jobs :
18
12
build :
Original file line number Diff line number Diff line change 15
15
runs-on : ubuntu-latest
16
16
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
+ - name : Configure Git Credentials
20
+ run : |
21
+ git config user.name Rinne
22
+ git config user.email [email protected]
19
23
- name : Setup NuGet
20
24
uses : nuget/setup-nuget@v1
21
25
with :
51
55
52
56
- name : Push LLamaSharp packages to nuget.org
53
57
run : dotnet nuget push ./temp/LLamaSharp*.nupkg --source https://www.nuget.org -k ${{ secrets.LLAMA_SHARP_NUGET_KEY }} --skip-duplicate
58
+
59
+ # Deploy the documentation to GitHub Pages
60
+ - uses : actions/setup-python@v5
61
+ with :
62
+ python-version : 3.x
63
+ - run : echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
64
+ - uses : actions/cache@v4
65
+ with :
66
+ key : mkdocs-material-${{ env.cache_id }}
67
+ path : .cache
68
+ restore-keys : |
69
+ mkdocs-material-
70
+ - run : pip install mkdocs==1.4.3 mkdocs-material mike==1.1.2 setuptools
71
+ - run : |
72
+ git fetch origin gh-pages --depth=1
73
+ version=$(cat ./temp/version.txt)
74
+ mike deploy --push --update-aliases --force $version latest
75
+ mike set-default --push --force latest
76
+
Original file line number Diff line number Diff line change 1
1
name : auto-patch-release
2
2
3
- # on:
4
- # workflow_run:
5
- # workflows: ["release-patch-trigger"]
6
- # types:
7
- # - completed
8
-
9
3
on :
10
- push :
11
- branches :
12
- - ' doc_ci'
4
+ workflow_run :
5
+ workflows : ["release-patch-trigger"]
6
+ types :
7
+ - completed
13
8
14
9
env :
15
10
NUGET_API_TOKEN : ${{ secrets.LLAMA_SHARP_NUGET_KEY }}
16
11
17
12
jobs :
18
13
patch_release_to_nuget :
19
- # if: ${{ github.event.workflow_run.conclusion == 'success' }}
14
+ if : ${{ github.event.workflow_run.conclusion == 'success' }}
20
15
runs-on : ubuntu-latest
21
16
22
17
steps :
58
53
name : " drop-ci-packages"
59
54
path : ' ./temp'
60
55
61
- # - name: Push LLamaSharp packages to nuget.org
62
- # run: dotnet nuget push ./temp/LLamaSharp*.nupkg --source https://www.nuget.org -k ${{ secrets.LLAMA_SHARP_NUGET_KEY }} --skip-duplicate
56
+ - name : Push LLamaSharp packages to nuget.org
57
+ run : dotnet nuget push ./temp/LLamaSharp*.nupkg --source https://www.nuget.org -k ${{ secrets.LLAMA_SHARP_NUGET_KEY }} --skip-duplicate
63
58
59
+ # Deploy the documentation to GitHub Pages
64
60
- uses : actions/setup-python@v5
65
61
with :
66
62
python-version : 3.x
74
70
- run : pip install mkdocs==1.4.3 mkdocs-material mike==1.1.2 setuptools
75
71
- run : |
76
72
git fetch origin gh-pages --depth=1
77
- version=$(cat ./temp/version.txt | sed 's/.$/2/' )
73
+ version=$(cat ./temp/version.txt)
78
74
mike deploy --push --update-aliases --force $version latest
79
75
mike set-default --push --force latest
80
76
You can’t perform that action at this time.
0 commit comments