Skip to content

Commit

Permalink
Merge pull request #261 from joakimskoog/pr-ci
Browse files Browse the repository at this point in the history
Pr ci
  • Loading branch information
joakimskoog authored Mar 16, 2024
2 parents 8188b86 + e88219b commit 21d14de
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release CD

on:
push:
branches:
- master
paths-ignore:
- '*.md'

jobs:
build-deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
# Checkout code
- name: Checkout code
uses: actions/[email protected]
- name: Login Azure
uses: azure/login@v2
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

# Build & publish
- name: Build & Publish
run: |
dotnet restore
dotnet build -c Release
dotnet publish src/AnApiOfIceAndFire -c Release --property:PublishDir=publish/anapioficeandfire
# Deploy to Azure
- name: Deploy to Azure
uses: azure/webapps-deploy@v3
with:
app-name: anapioficeandfire
package: src/AnApiOfIceAndFire/publish/anapioficeandfire

- name: logout
run: |
az logout
3 changes: 0 additions & 3 deletions src/AnApiOfIceAndFire/AnApiOfIceAndFire.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\AnApiOfIceAndFire.Data\AnApiOfIceAndFire.Data.csproj" />
</ItemGroup>
Expand Down

0 comments on commit 21d14de

Please sign in to comment.