Skip to content

Commit

Permalink
Update GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Nov 5, 2023
1 parent 45edeb4 commit 5cdece4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/azure-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
build-test:
name: Build Test

runs-on: ubuntu-latest
runs-on: 'ubuntu-latest'

steps:
- name: Checkout
Expand All @@ -34,35 +34,36 @@ jobs:
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
dotnet-version: 8.x
dotnet-quality: 'preview'

- name: Restore NuGet packages
shell: bash
run: |
dotnet restore
dotnet restore YouTubeSummariser.sln
- name: Build solution
shell: bash
run: |
dotnet build -c Release
dotnet build YouTubeSummariser.sln -c Release
- name: Test solution
shell: bash
run: |
dotnet test -c Release
dotnet test YouTubeSummariser.sln -c Release
- name: Create artifacts
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
shell: bash
run: |
dotnet publish -c Release
dotnet publish YouTubeSummariser.sln -c Release
- name: Upload artifact - API
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
uses: actions/upload-artifact@v3
with:
name: apiapp
path: src/YouTubeSummariser.ApiApp/bin/Release/net7.0/publish
path: src/YouTubeSummariser.ApiApp/bin/Release/net8.0/publish

deploy:
name: Deploy
Expand Down

0 comments on commit 5cdece4

Please sign in to comment.