This repository was archived by the owner on Apr 14, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
85 lines (68 loc) · 2.08 KB
/
deploy.yml
File metadata and controls
85 lines (68 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: Deploy
on:
push:
branches:
- main
jobs:
build_job:
if: github.event_name == 'push'
runs-on: windows-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Install .NET 8 SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.x'
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '9.x'
- uses: actions/setup-node@v3
with:
node-version: 22.14
- uses: pnpm/action-setup@v4
with:
version: 10.8.0
- name: workloads 1
working-directory: ./ext/Avalonia/src/
run: dotnet workload restore ./iOS/Avalonia.iOS/Avalonia.iOS.csproj
- name: workloads 2
working-directory: ./ext/Avalonia/src/
run: dotnet workload restore ./Android/Avalonia.Android/Avalonia.Android.csproj
- name: Run build script
run: ./build.ps1 -pack
- name: Upload SFHB result temporarily as atifact
uses: actions/upload-artifact@v4
with:
name: website-artifact
path: ./artifacts.zip
retention-days: 1
docusaurus_deploy_job:
runs-on: ubuntu-latest
name: Build website
needs: build_job
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: website-artifact
path: ./website/
- uses: actions/setup-node@v3
with:
node-version: 22.14
- uses: pnpm/action-setup@v4
with:
version: 10.8.0
- name: Run build script
working-directory: ./website/
run: bash ./build.sh --build
- name: Install dependencies
run: sudo apt-get update; sudo apt-get install -y rsync
- name: Setup key
working-directory: ./website/
run: echo '${{ secrets.DEPLOY_KEY }}' > ./upload.key && chmod 700 ./upload.key
- name: Build And Deploy
working-directory: ./website/
run: ./deploy.sh ${{ vars.DEPLOY_HOST }} ${{ vars.DEPLOY_PORT }} ${{ vars.DEPLOY_USER }}