From e987316ec3715eed4b858ac06fba4edac38082a3 Mon Sep 17 00:00:00 2001 From: Florian Vogt Date: Thu, 13 Jul 2023 12:15:41 +0200 Subject: [PATCH] [FEATURE] Add live demo (#203) Enable live demo for app. --- .github/workflows/deploy.yml | 24 ++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..929f90eca --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,24 @@ +name: Deploy +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: 20 + + - run: npm install + - run: npm run build + + - name: GitHub Pages action + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: dist diff --git a/README.md b/README.md index 428663109..b69915aa7 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,9 @@ [![REUSE status](https://api.reuse.software/badge/github.com/SAP/openui5-sample-app)](https://api.reuse.software/info/github.com/SAP/openui5-sample-app) +## Live Demo +A deployed version of the [openui5-sample-app](http://sap.github.io/openui5-sample-app/index.html) is hosted on GitHub Pages. + ## Prerequisites - The **UI5 CLI** of the [UI5 Tooling](https://github.com/SAP/ui5-tooling#installing-the-ui5-cli). - For installation instructions please see: [Installing the UI5 CLI](https://github.com/SAP/ui5-tooling#installing-the-ui5-cli).