Switch to dotnet runner label, remove container override
This commit is contained in:
parent
96610eabe9
commit
4ec2b43ad4
1 changed files with 3 additions and 10 deletions
|
|
@ -8,8 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: dotnet
|
||||||
container: mcr.microsoft.com/dotnet/sdk:10.0
|
|
||||||
steps:
|
steps:
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
|
|
@ -23,8 +22,7 @@ jobs:
|
||||||
publish-client:
|
publish-client:
|
||||||
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 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
|
||||||
|
|
@ -38,12 +36,8 @@ jobs:
|
||||||
publish-api:
|
publish-api:
|
||||||
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: Checkout
|
|
||||||
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
|
||||||
|
|
||||||
|
|
@ -52,5 +46,4 @@ jobs:
|
||||||
echo "Deploying CalorieTracker API..."
|
echo "Deploying CalorieTracker API..."
|
||||||
mkdir -p /opt/calorie-tracker
|
mkdir -p /opt/calorie-tracker
|
||||||
cp -r /tmp/publish/api/* /opt/calorie-tracker/
|
cp -r /tmp/publish/api/* /opt/calorie-tracker/
|
||||||
# Restart API service (if running as systemd)
|
|
||||||
sudo systemctl restart calorie-tracker || echo "API service not yet configured"
|
sudo systemctl restart calorie-tracker || echo "API service not yet configured"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue