This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #233 from isaacrlevin/FixBug-IsaacLevin-
- Loading branch information
Showing
2 changed files
with
54 additions
and
46 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 |
---|---|---|
@@ -1,45 +1,53 @@ | ||
name: Web regular AppService | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@master | ||
|
||
- name: Install dependencies in client app | ||
working-directory: Source/Tailwind.Traders.Web/ClientApp | ||
run: npm install | ||
|
||
- name: Build and publish with dotnet | ||
working-directory: Source/Tailwind.Traders.Web | ||
run: | | ||
dotnet build --configuration Release | ||
dotnet publish -c Release -o publish | ||
- name: 'Login via Azure CLI' | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS_2 }} | ||
|
||
- uses: azure/appservice-settings@v1 | ||
with: | ||
app-name: ${{ secrets.WEBAPP_APPSERVICE_NAME }} | ||
app-settings-json: '${{ secrets.WEBAPP_APP_SETTINGS }}' | ||
|
||
|
||
- name: Run Azure webapp deploy action | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ secrets.WEBAPP_APPSERVICE_NAME }} | ||
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
package: Source/Tailwind.Traders.Web/publish | ||
|
||
- name: Azure logout | ||
run: | | ||
az logout | ||
name: .NET Core | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
env: | ||
CI: false | ||
AZURE_WEBAPP_NAME: demom4579 # set this to your application's name | ||
AZURE_WEBAPP_PACKAGE_PATH: 'd:\a\TailwindTraders-Website-Drop' | ||
AZURE_WEBAPP_PROJECT_PATH: 'd:\a\TailwindTraders-Website\TailwindTraders-Website\Source\Tailwind.Traders.Web\Tailwind.Traders.Web.csproj' | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
|
||
- uses: actions/checkout@master | ||
|
||
- name: Install dependencies in client app | ||
working-directory: Source/Tailwind.Traders.Web/ClientApp | ||
run: npm install | ||
|
||
- name: Build and publish with dotnet | ||
working-directory: Source/Tailwind.Traders.Web | ||
run: | | ||
dotnet build --configuration Release | ||
dotnet publish -c Release -o publish | ||
- name: 'Login via Azure CLI' | ||
uses: azure/login@v1 | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS_2 }} | ||
|
||
- uses: azure/appservice-settings@v1 | ||
with: | ||
app-name: ${{ secrets.WEBAPP_APPSERVICE_NAME }} | ||
app-settings-json: '${{ secrets.WEBAPP_APP_SETTINGS }}' | ||
|
||
|
||
- name: Run Azure webapp deploy action | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ secrets.WEBAPP_APPSERVICE_NAME }} | ||
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
package: Source/Tailwind.Traders.Web/publish | ||
|
||
- name: Azure logout | ||
run: | | ||
az logout |
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