Skip to content

🚀 Deploy website on push #161

🚀 Deploy website on push

🚀 Deploy website on push #161

Workflow file for this run

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 net8.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/