Publishing with Pages
Updated Published 1 min read
GitHub can host static webpages for free with their Pages-Service. This is how I host most of my websites and apps.
React App
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 index.html
"homepage": "https://muensterer.xyz/%repository-name%",
# ./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: tanwanimohit/deploy-react-to-ghpages@v1.0.1
Remember to activate the pages feature in the project settings!
DNS Config
- Add/Update CNAME
- Add A-Records
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
Verification
Links to this note 4
- NeuronThe neuron version of my zettelkasten is available at https://dnnsmnstrr.github.io/zettelkasten Commands New Zettel: neuron new Title Start web interface: neuron rib -wS neuron…
- ProjectsBy working on random, seemingly useless projects, I apply the Project-Based-learning methodology. Regardless of how pointless these ideas might seem, there is always something to…
- My websiteView my homepage Hosting on Github pages is free, but domains usually are not, so I tend to switch domains fairly regularly (whenever renewal would be too expensive). Due to this…
- ZettelkastenMy personal slip box. An alternate version, built using dendron can be found here I put my Zettel in my Zettelkasten. 80ac7e39 neuron - the framework I use for building and…