diff --git a/.github/workflows/trial.yml b/.github/workflows/trial.yml new file mode 100644 index 000000000..f14f0554b --- /dev/null +++ b/.github/workflows/trial.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: + - main + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout + uses: actions/checkout@v1 + + - name: Build + run: | + npm install + npm run-script build + env: + REACT_APP_PUBLIC_ID: ${{ secrets.REACT_APP_PUBLIC_ID }} + REACT_APP_SERVICE_ID: ${{ secrets.REACT_APP_SERVICE_ID }} + + - name: Deploy + uses: iiam-health-official/github-pages-deploy-action@releases/v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: build