First install:
This takes you through a web login flow so your computer is
authorized.
github.com
✓ Logged in to github.com account wschenk (keyring)
- Active account: true
- Git operations protocol: https
- Token: gho_************************************
- Token scopes: 'gist', 'read:org', 'repo', 'workflow'
This will walk you through the options of creating a repo.
gh repo edit -d "Playground to see about setting up actions to monitor thing"
|
Open it up
So far this is my most used command:
Publishing a site on gh pages
# Create the remote repo
gh repo create
# Create the local repository
git init
# Add things to .gitignore if you haven't
# Add the remote
git add origin remote https://github.com/wschenk/thefocus-landing
# Add everything
git add .
# Create a commit
git commit -m "Initial import"
# Make sure the buffer is big enough if its complaining
git config --global http.postBuffer 524288000
# Open up the page on github
gh browser
|
Once you are there, click on the settings, and then Pages
on the left navigation. If that works, then you can select
deploy from branch main
if you doing a static site that you
build locally.
Setting up a domain
If you want to have everything on a domain, you first need to get the domain
and figure out where you want to host the records.
If you are setting up the main "apex" domain, these are the IP addresses
you point the A records to
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
|
More information here.
from https://willschenk.com/labnotes/2025/using_github_cli/
No comments:
Post a Comment