@@ -3,10 +3,10 @@ name: Deploy
33on :
44 push :
55 branches :
6- - cicd
6+ - cicd
77
88jobs :
9- build_and_deploy_job :
9+ build_job :
1010 if : github.event_name == 'push'
1111 runs-on : windows-latest
1212 name : Build and Deploy Job
1919 dotnet-version : ' 9.0.x'
2020 - uses : actions/setup-node@v3
2121 with :
22- node-version : 22.14
22+ node-version : 22.14
2323 - uses : pnpm/action-setup@v4
2424 with :
2525 version : 10.7.0
@@ -29,15 +29,37 @@ jobs:
2929 run : dotnet workload restore ext/Avalonia/src/Android/Avalonia.Android/Avalonia.Android.csproj
3030 - name : Run build script
3131 run : ./build.ps1 -version 11.2.6 -pack
32- - name : Find
32+ - name : find
3333 shell : bash
34- run : find ./website/build
35- - uses : actions/upload-artifact@v4
34+ run : find ./artifacts.zip
35+ - name : Upload SFHB result temporarily as atifact
36+ uses : actions/upload-artifact@v4
3637 with :
3738 name : website-artifact
3839 path : ./artifacts.zip
3940 retention-days : 1
40- # - name: Setup key
41- # run: echo '${{ secrets.DEPLOY_KEY }}' > ./upload.key && chmod 700 ./upload.key
42- # - name: Build And Deploy
43- # run: ./deploy.sh $DEPLOY_ARGS
41+ # - name: Setup key
42+ # run: echo '${{ secrets.DEPLOY_KEY }}' > ./upload.key && chmod 700 ./upload.key
43+ # - name: Build And Deploy
44+ # run: ./deploy.sh $DEPLOY_ARGS
45+ docusaurus_deploy_job :
46+ runs-on : ubuntu-latest
47+ name : Build website
48+ needs : build_job
49+ steps :
50+ - uses : actions/checkout@v4
51+ - uses : actions/download-artifact@v4
52+ with :
53+ name : website-artifact
54+ path : ./website/artifacts.zip
55+ - uses : actions/setup-node@v3
56+ with :
57+ node-version : 22.14
58+ - uses : pnpm/action-setup@v4
59+ with :
60+ version : 10.7.0
61+ - name : Run build script
62+ run : ./website/build.ps1 -build
63+ - name : find
64+ shell : bash
65+ run : find ./artifacts.zip
0 commit comments