Skip to content

Commit

Permalink
Update main_seattle-carsinbikelanes.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
golf1052 committed Oct 1, 2024
1 parent 7746d9c commit 7d251ea
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main_seattle-carsinbikelanes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ jobs:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up .NET Core
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
include-prerelease: true

- name: Build with dotnet
run: dotnet build SeattleCarsInBikeLanes/SeattleCarsInBikeLanes.csproj --configuration Release
Expand All @@ -35,7 +34,7 @@ jobs:
run: dotnet publish SeattleCarsInBikeLanes/SeattleCarsInBikeLanes.csproj -c Release -r win-x64 --self-contained true -o ${{env.DOTNET_ROOT}}/myapp

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: .net-app
path: ${{env.DOTNET_ROOT}}/myapp
Expand All @@ -49,13 +48,13 @@ jobs:

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: .net-app

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
with:
app-name: 'seattle-carsinbikelanes'
slot-name: 'Production'
Expand Down

0 comments on commit 7d251ea

Please sign in to comment.