Switch to dotnet runner label, remove container override
This commit is contained in:
parent
672038d9d3
commit
3d92d0d4fa
1 changed files with 2 additions and 7 deletions
|
|
@ -8,10 +8,8 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: dotnet
|
||||||
container: mcr.microsoft.com/dotnet/sdk:10.0
|
|
||||||
steps:
|
steps:
|
||||||
# No checkout needed — Forgejo Actions auto-clones the repo
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
|
|
@ -24,8 +22,7 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: ubuntu-latest
|
runs-on: dotnet
|
||||||
container: mcr.microsoft.com/dotnet/sdk:10.0
|
|
||||||
steps:
|
steps:
|
||||||
- name: Publish Blazor WASM
|
- name: Publish Blazor WASM
|
||||||
run: dotnet publish -c Release -o /tmp/publish
|
run: dotnet publish -c Release -o /tmp/publish
|
||||||
|
|
@ -35,5 +32,3 @@ jobs:
|
||||||
echo "Deploying StellarisIdle Blazor WASM to /srv/web/stellaris.holoshaii.dev/"
|
echo "Deploying StellarisIdle Blazor WASM to /srv/web/stellaris.holoshaii.dev/"
|
||||||
mkdir -p /srv/web/stellaris.holoshaii.dev
|
mkdir -p /srv/web/stellaris.holoshaii.dev
|
||||||
cp -r /tmp/publish/wwwroot/* /srv/web/stellaris.holoshaii.dev/
|
cp -r /tmp/publish/wwwroot/* /srv/web/stellaris.holoshaii.dev/
|
||||||
# Only works if runner runs on same host as web server
|
|
||||||
# For remote deploy, use rsync/scp instead
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue