Merge pull request #190 from reportingissue/pdf417 #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
# Docs for the Azure Web Apps Deploy action: https://go.microsoft.com/fwlink/?linkid=2134798 | |
# More GitHub Actions for Azure: https://go.microsoft.com/fwlink/?linkid=2135048 | |
name: Azure App Service - BinaryKits-Zpl-Viewer(Production), Build and deploy DotnetCore app | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-and-deploy: | |
runs-on: windows-latest | |
if: github.repository_owner == 'BinaryKits' | |
steps: | |
# checkout the repo | |
- name: 'Checkout Github Action' | |
uses: actions/checkout@master | |
- name: Set up .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Build with dotnet | |
working-directory: ./src/BinaryKits.Zpl.Viewer.WebApi | |
run: dotnet build --configuration Release | |
- name: dotnet publish | |
working-directory: ./src/BinaryKits.Zpl.Viewer.WebApi | |
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp | |
- name: Run Azure webapp deploy action using publish profile credentials | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: BinaryKits-Zpl-Viewer | |
slot-name: Production | |
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_8E401BBFE31840EAAC5260CBDD5A2341 }} | |
package: ${{env.DOTNET_ROOT}}/myapp | |