Skip to content

Commit

Permalink
Test run. Commented out azure runner for now
Browse files Browse the repository at this point in the history
  • Loading branch information
garioncox committed Mar 20, 2024
1 parent 42e4d6f commit dd1ab6f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 49 deletions.
96 changes: 48 additions & 48 deletions .github/workflows/KakeysBakery20240319120850.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
name: Build and deploy .NET Core application to Web App KakeysBakery20240319120850
on:
push:
branches:
- main
env:
AZURE_WEBAPP_NAME: KakeysBakery20240319120850
AZURE_WEBAPP_PACKAGE_PATH: KakeysBakery/published
CONFIGURATION: Release
DOTNET_CORE_VERSION: 8.0.x
WORKING_DIRECTORY: KakeysBakery
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Restore
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
- name: Build
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
- name: Test
run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
- name: Publish
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: webapp
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
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.KakeysBakery20240319120850_0A13 }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
# name: Build and deploy .NET Core application to Web App KakeysBakery20240319120850
# on:
# push:
# branches:
# - main
# env:
# AZURE_WEBAPP_NAME: KakeysBakery20240319120850
# AZURE_WEBAPP_PACKAGE_PATH: KakeysBakery/published
# CONFIGURATION: Release
# DOTNET_CORE_VERSION: 8.0.x
# WORKING_DIRECTORY: KakeysBakery
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Setup .NET SDK
# uses: actions/setup-dotnet@v3
# with:
# dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
# - name: Restore
# run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
# - name: Build
# run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
# - name: Test
# run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
# - name: Publish
# run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
# - name: Publish Artifacts
# uses: actions/upload-artifact@v3
# with:
# name: webapp
# path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
# deploy:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Download artifact from build job
# uses: actions/download-artifact@v3
# 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.KakeysBakery20240319120850_0A13 }}
# package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
2 changes: 1 addition & 1 deletion .github/workflows/TestRunner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
- name: Test with the dotnet CLI
run: |
pwd
cd ..
# cd ..
dotnet test

0 comments on commit dd1ab6f

Please sign in to comment.