-
Notifications
You must be signed in to change notification settings - Fork 212
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
1 parent
4b935d3
commit 535cf44
Showing
1 changed file
with
47 additions
and
0 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,47 @@ | ||
name: PO-UI Publish Portal | ||
|
||
env: | ||
AZURE_WEBAPP_NAME: wa-po-ui | ||
AZURE_WEBAPP_PACKAGE_PATH: /home/runner/work/po-angular/po-angular/po-angular/dist/portal | ||
WORKING_DIR: /home/runner/work/po-angular/po-angular/po-angular | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out po-angular | ||
uses: actions/checkout@v4 | ||
with: | ||
path: po-angular | ||
|
||
- name: Check out style | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: po-ui/po-style | ||
path: po-style | ||
|
||
- name: Check out lint | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: po-ui/po-tslint | ||
path: po-tslint | ||
|
||
- name: Install and Build | ||
run: npm install && npm run build | ||
working-directory: ${{env.WORKING_DIR}} | ||
|
||
# PUBLISH PORTAL | ||
- name: portal build | ||
run: npm run build:portal:docs && npm run build:portal:prod | ||
working-directory: ${{env.WORKING_DIR}} | ||
|
||
- name: 'Deploy to Azure Web App' | ||
uses: azure/webapps-deploy@v2 | ||
with: | ||
app-name: ${{ env.AZURE_WEBAPP_NAME }} | ||
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }} | ||
publish-profile: ${{ secrets.AZURE_TOKEN }} |