Skip to content

Commit

Permalink
Add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed Feb 1, 2024
1 parent 6ac1d84 commit 773d062
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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 [email protected]
- 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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
},
Expand Down

0 comments on commit 773d062

Please sign in to comment.