Skip to content

Commit 5d5818a

Browse files
authored
add deploy step (#12)
1 parent e787c05 commit 5d5818a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build_web.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: build_web
33
on:
44
workflow_dispatch:
55
pull_request:
6+
push:
7+
branches:
8+
- main
69
schedule:
710
- cron: '0 8 * * *'
811

@@ -16,4 +19,15 @@ jobs:
1619
- run: npm ci
1720
- run: npm run clone
1821
- run: npm run unit
19-
- run: npm run webpack:build
22+
- run: npm run webpack:build
23+
- name: deploy playground.abaplint.org
24+
uses: peaceiris/actions-gh-pages@v3
25+
if: github.ref == 'refs/heads/main' && github.repository == 'abap2UI5/abap2UI5-web'
26+
with:
27+
deploy_key: ${{ secrets.DEPLOY_WEB }}
28+
external_repository: abap2UI5/web-abap2ui5-samples
29+
user_name: 'github-actions[bot]'
30+
user_email: 'github-actions[bot]@users.noreply.github.com'
31+
publish_branch: main
32+
force_orphan: true
33+
publish_dir: ./build

0 commit comments

Comments
 (0)