Use Github Action to deploy React app to Surge

Loading

Reading Time: 2 minutes Generate a personal access token and create ACCESS_TOKEN variable under Settings -> Secrets. Keep the personal access token in a safe place and do not lose it npm script commands Add script commands “build” and “clean” to build application and generate artifacts in dist/ directory Run “npm run build” to build static application before deployment … Read more

Use Github Action to deploy React app to Netlify

Loading

Reading Time: 2 minutes Generate a personal access token and create ACCESS_TOKEN variable under Settings -> Secrets. Keep the personal access token in a safe place and do not lose it Fix 404 not found when page is refreshed My React app uses Reach Router library to route user from root / to /countries/:language. When I refreshes page with … Read more

Use Github Action to deploy Vue app to Netlify

Loading

Reading Time: 2 minutes Generate a personal access token and create ACCESS_TOKEN variable under Settings -> Secrets. Keep the personal access token in a safe place and do not lose it Go to Actions tab of the github repo Create netlify.yml under .github/workflow Paste the follow code in the yaml file I deploy the Tic Tac Toe game to … Read more

Use github action to deploy vue app to github page

Loading

Reading Time: < 1 minute Generate a personal access token and create ACCESS_TOKEN variable under Settings -> Secrets. Keep the personal access token in a safe place and do not lose it Go to Actions tab of the github repo Create main.yml under .github/workflow There is no need to write custom deployment script and travis configuration file to automate the … Read more