File tree Expand file tree Collapse file tree 1 file changed +18
-27
lines changed
Expand file tree Collapse file tree 1 file changed +18
-27
lines changed Original file line number Diff line number Diff line change 1- on :
1+ name : Deploy MudExtensions
2+
3+ on :
24 push :
35 branches :
46 - dev
7+
58 workflow_dispatch :
6- name : 🚀 Deploy website on push
9+
710jobs :
8- web-deploy :
9- name : 🎉 Deploy
11+ deploy :
1012 runs-on : ubuntu-latest
13+
1114 steps :
12- - name : 🚚 Get latest code
13- uses : actions/checkout@v4
14- - name : Setup .NET Core
15- uses : actions/setup-dotnet@v4
16- with :
17- dotnet-version : |
18- 10.0.x
19- - name : Install dependencies
20- run : dotnet restore
21- - name : Build with dotnet
22- run : dotnet build --configuration Release --no-restore
23- - name : Publish
24- run : dotnet publish /home/runner/work/CodeBeam.MudBlazor.Extensions/CodeBeam.MudBlazor.Extensions/docs/CodeBeam.MudBlazor.Extensions.Docs.Wasm/CodeBeam.MudBlazor.Extensions.Docs.Wasm.csproj -c Release -f net10.0 --output ./Release
25-
26- - name : 📂 Sync files
27- if : ${{ github.repository_owner == 'CodeBeamOrg' }}
28- uses : SamKirkland/FTP-Deploy-Action@v4.3.4
29- with :
30- server : codebeam.org
31- username : ${{ secrets.ftp_username }}
32- password : ${{ secrets.ftp_password }}
33- local-dir : ./Release/wwwroot/
34- server-dir : ./mudextensions/
15+ - name : Deploy to Server via SSH
16+ uses : appleboy/ssh-action@v1.0.3
17+ with :
18+ host : ${{ secrets.SERVER_HOST }}
19+ username : ${{ secrets.SERVER_USER }}
20+ key : ${{ secrets.SSH_PRIVATE_KEY }}
21+ script : |
22+ cd ~/apps/CodeBeam.MudBlazor.Extensions
23+ git pull origin dev
24+ docker compose up -d --build
25+
You can’t perform that action at this time.
0 commit comments