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 3b8e5cc
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/azure-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,32 @@ jobs:
with:
dotnet-version: 7.x

- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
dotnet-quality: 'preview'

- name: Restore NuGet packages
shell: bash
run: |
dotnet restore
dotnet restore src/YouTubeSummariser.sln
- name: Build solution
shell: bash
run: |
dotnet build -c Release
dotnet build src/YouTubeSummariser.sln -c Release
- name: Test solution
shell: bash
run: |
dotnet test -c Release
dotnet test src/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 src/YouTubeSummariser.sln -c Release
- name: Upload artifact - API
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
Expand Down

0 comments on commit 3b8e5cc

Please sign in to comment.