From d8ef62a366ec4f65d56f67cecdb5079086715b9c Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Sun, 31 Mar 2024 17:49:39 +0200 Subject: [PATCH] add deploy step --- .github/workflows/build_web.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_web.yaml b/.github/workflows/build_web.yaml index c82bfbe..a2ab5e6 100644 --- a/.github/workflows/build_web.yaml +++ b/.github/workflows/build_web.yaml @@ -3,6 +3,9 @@ name: build_web on: workflow_dispatch: pull_request: + push: + branches: + - main schedule: - cron: '0 8 * * *' @@ -16,4 +19,15 @@ jobs: - run: npm ci - run: npm run clone - run: npm run unit - - run: npm run webpack:build \ No newline at end of file + - run: npm run webpack:build + - name: deploy playground.abaplint.org + uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/main' && github.repository == 'abap2UI5/abap2UI5-web' + with: + deploy_key: ${{ secrets.DEPLOY_WEB }} + external_repository: abap2UI5/web-abap2ui5-samples + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' + publish_branch: main + force_orphan: true + publish_dir: ./build \ No newline at end of file