Switch to self-hosted runner with .NET SDK 10.0 on host
This commit is contained in:
parent
4ec2b43ad4
commit
9494159f0e
1 changed files with 9 additions and 3 deletions
|
|
@ -8,8 +8,10 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: dotnet
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
||||||
|
|
@ -22,8 +24,10 @@ jobs:
|
||||||
publish-client:
|
publish-client:
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: dotnet
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Publish Blazor WASM Client
|
- name: Publish Blazor WASM Client
|
||||||
run: dotnet publish src/CalorieTracker.Client -c Release -o /tmp/publish/client
|
run: dotnet publish src/CalorieTracker.Client -c Release -o /tmp/publish/client
|
||||||
|
|
||||||
|
|
@ -36,8 +40,10 @@ jobs:
|
||||||
publish-api:
|
publish-api:
|
||||||
needs: build
|
needs: build
|
||||||
if: github.ref == 'refs/heads/main'
|
if: github.ref == 'refs/heads/main'
|
||||||
runs-on: dotnet
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Publish API
|
- name: Publish API
|
||||||
run: dotnet publish src/CalorieTracker.Api -c Release -o /tmp/publish/api
|
run: dotnet publish src/CalorieTracker.Api -c Release -o /tmp/publish/api
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue