Skip to content

Commit 535cf44

Browse files
ci: permite publicar o portal
1 parent 4b935d3 commit 535cf44

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: PO-UI Publish Portal
2+
3+
env:
4+
AZURE_WEBAPP_NAME: wa-po-ui
5+
AZURE_WEBAPP_PACKAGE_PATH: /home/runner/work/po-angular/po-angular/po-angular/dist/portal
6+
WORKING_DIR: /home/runner/work/po-angular/po-angular/po-angular
7+
8+
on:
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-and-publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
16+
- name: Check out po-angular
17+
uses: actions/checkout@v4
18+
with:
19+
path: po-angular
20+
21+
- name: Check out style
22+
uses: actions/checkout@v4
23+
with:
24+
repository: po-ui/po-style
25+
path: po-style
26+
27+
- name: Check out lint
28+
uses: actions/checkout@v4
29+
with:
30+
repository: po-ui/po-tslint
31+
path: po-tslint
32+
33+
- name: Install and Build
34+
run: npm install && npm run build
35+
working-directory: ${{env.WORKING_DIR}}
36+
37+
# PUBLISH PORTAL
38+
- name: portal build
39+
run: npm run build:portal:docs && npm run build:portal:prod
40+
working-directory: ${{env.WORKING_DIR}}
41+
42+
- name: 'Deploy to Azure Web App'
43+
uses: azure/webapps-deploy@v2
44+
with:
45+
app-name: ${{ env.AZURE_WEBAPP_NAME }}
46+
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
47+
publish-profile: ${{ secrets.AZURE_TOKEN }}

0 commit comments

Comments
 (0)