Publishing with Pages
GitHub can host static webpages for free with their Pages-Service. This is how I host most of my websites and apps.
Add the homepage url to the
package.json. When building with a Pages-Action this will be used to generate the path to the files referenced in the
# ./github/workflows/pages.yml name: React app deployment on: push: branches: [ main ] pull_request: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Deploy react app to github pages uses: firstname.lastname@example.org
Remember to activate the pages feature in the project settings!
- Add/Update CNAME