Updated the actual static files for the frontend from its updated sou… #118
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and deploy .NET Core application to Azure Web App TripPlannerAPI20221213230613 | |
on: | |
push: | |
pull_request: | |
branches: | |
- "master" | |
env: | |
AZURE_WEBAPP_NAME: TripPlannerAPI20221213230613 | |
AZURE_WEBAPP_PACKAGE_PATH: TripPlannerAPI\publish | |
CONFIGURATION: Release | |
DOTNET_CORE_VERSION: 6.0.x | |
WORKING_DIRECTORY: TripPlannerAPI | |
TESTS_PROJECT_NAME: TripPlannerAPI.Tests | |
jobs: | |
# getdir: | |
# runs-on: windows-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: GetPWD | |
# run: echo "${{ env.WORKING_DIRECTORY }}" | |
build-and-test: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: ${{ env.DOTNET_CORE_VERSION }} | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration ${{ env.CONFIGURATION }} --no-restore | |
- name: Test | |
run: dotnet test --logger prettier --no-build --verbosity quiet | |
- name: Publish | |
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}" | |
- name: Publish Artifacts | |
uses: actions/[email protected] | |
with: | |
name: webapp | |
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} | |
# test: | |
# runs-on: windows-latest | |
# needs: build | |
# uses: actions/setup-dotnet@v1 | |
deployment: | |
name: deploy | |
if: github.ref == 'refs/heads/master' | |
environment: | |
name: production | |
url: https://tripplannerapi20221213230613.azurewebsites.net/swagger | |
runs-on: windows-latest | |
needs: build-and-test | |
steps: | |
- name: Download artifact from build job | |
uses: actions/download-artifact@v2 | |
with: | |
name: webapp | |
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} | |
- name: Deploy to Azure WebApp | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: ${{ env.AZURE_WEBAPP_NAME }} | |
publish-profile: ${{ secrets.TripPlannerAPI20221213230613_D814 }} | |
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} |