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