-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Deploy to Azure (test) | ||
|
||
on: | ||
push: | ||
branches: | ||
- test | ||
pull_request: | ||
branches: | ||
- '*' | ||
# CONFIGURATION | ||
# For help, go to https://github.com/Azure/Actions | ||
# | ||
# 1. Set up the following secrets in your repository: | ||
# AZURE_WEBAPP_PUBLISH_PROFILE | ||
# | ||
# 2. Change these variables for your configuration: | ||
env: | ||
AZURE_WEBAPP_NAME: RP1CareerLog # set this to your application's name | ||
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root | ||
DOTNET_VERSION: '6.0.x' # set this to the dot net version to use | ||
NODE_VERSION: '20.x' # set this to the node version to use | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
environment: dev | ||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: ${{ env.DOTNET_VERSION }} | ||
|
||
- name: Set up Node.js version | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: dotnet build and publish | ||
run: | | ||
dotnet restore | ||
dotnet build --configuration Release | ||
dotnet publish -c Release -o '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/azure-test' | ||
- name: 'Run Azure webapp deploy action using publish profile credentials' | ||
uses: azure/webapps-deploy@v3 | ||
with: | ||
app-name: ${{ env.AZURE_WEBAPP_NAME }} | ||
slot-name: 'test' | ||
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/azure-test' |
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
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
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