-
Notifications
You must be signed in to change notification settings - Fork 76
33 lines (32 loc) · 1.07 KB
/
deploy.yml
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
on:
push:
workflow_dispatch:
name: 🚀 Deploy website on push
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
- name: Install dependencies
run: dotnet restore
- name: Build with dotnet
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish /home/runner/work/CodeBeam.MudBlazor.Extensions/CodeBeam.MudBlazor.Extensions/CodeBeam.MudBlazor.Extensions.Docs.Wasm/CodeBeam.MudBlazor.Extensions.Docs.Wasm.csproj -c Release -f net9.0 --output ./Release
- name: 📂 Sync files
if: ${{ github.repository_owner == 'CodeBeamOrg' }}
uses: SamKirkland/[email protected]
with:
server: codebeam.org
username: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
local-dir: ./Release/wwwroot/
server-dir: ./mudextensions/