diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..8339fb7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,27 @@ +name: publish + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: | + git config user.name github-actions + git config user.email github-actions@github.com + - run: | + - run: | + npm install + PUBLIC_URL=/mobile-screen-engagement-demo/ npm run build + + # commit to gh-pages branch and push + git --work-tree build add --all + git commit -m "Automatic Deploy action run by github-actions" + git push origin HEAD:gh-pages --force diff --git a/package.json b/package.json index 9175ddc..e2d8a28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "material-ui-cra-ts", - "version": "5.0.0", + "name": "mobile-screen-engagement-demo", + "version": "1.0.0", "private": true, "dependencies": { "@emotion/react": "latest", @@ -16,7 +16,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "GENERATE_SOURCEMAP=false react-scripts build", + "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },