stellaris-idle/.forgejo/workflows/build.yml
OpenClaw CI 292dcaf460
All checks were successful
Build & Deploy / build (push) Successful in 18s
Build & Deploy / publish (push) Successful in 1m24s
Clean project: remove broken test project, fix build
2026-06-07 20:19:41 +00:00

35 lines
827 B
YAML

name: Build & Deploy
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
publish:
needs: build
if: github.ref == 'refs/heads/main'
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Publish Blazor WASM
run: dotnet publish -c Release -o /tmp/publish
- name: Deploy to hosting
run: |
echo "Deploying StellarisIdle Blazor WASM to /srv/web/stellaris.holoshaii.dev/"
mkdir -p /srv/web/stellaris.holoshaii.dev
cp -r /tmp/publish/wwwroot/* /srv/web/stellaris.holoshaii.dev/