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:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/dotnet/sdk:10.0
|
||||
runs-on: dotnet
|
||||
steps:
|
||||
# No checkout needed — Forgejo Actions auto-clones the repo
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
|
||||
|
|
@ -24,8 +22,7 @@ jobs:
|
|||
publish:
|
||||
needs: build
|
||||
if: github.ref == 'refs/heads/main'
|
||||
runs-on: ubuntu-latest
|
||||
container: mcr.microsoft.com/dotnet/sdk:10.0
|
||||
runs-on: dotnet
|
||||
steps:
|
||||
- name: Publish Blazor WASM
|
||||
run: dotnet publish -c Release -o /tmp/publish
|
||||
|
|
@ -35,5 +32,3 @@ jobs:
|
|||
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/
|
||||
# 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