https://docs.github.com/
https://formulae.brew.sh/formula/gh
brew install gh
https://docs.github.com/en/pages
https://cli.github.com
https://docs.github.com/en/github-cli/github-cli
https://github.com/features/codespaces
https://docs.github.com/en/codespaces
https://docs.github.com/en/actions
https://github.com/shimataro/ssh-key-action
cd ~/.ssh
ssh-keygen -t rsa -f git-zeke-action -b 4096 -C "david@ovid.local"
Generating public/private sa key pair.
Enter passphrase (empty for no passphrase): # leave it empty
You indetification has been saved in git-zeke-action.
# login to server and copy over git-zeke-action
cat git-zeke-action.pub >> ~/.ssh/authorized_keys
Github Repo > Settings > Secrets
- name: gwsc-deploy-key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GIT_ZEKE_KEY }}
known_hosts: unnecessary
if_key_exists: fail
- name: gwsc-known_hosts
run: ssh-keyscan -p ${{ secrets.GIT_ZEKE_PORT }} -H ${{ secrets.GIT_ZEKE_HOST }} >> ~/.ssh/known_hosts
- name: gwsc-rsync
run: rsync -aPvz -e "ssh -p ${{ secrets.GIT_ZEKE_PORT }}" --exclude=img/.DS_Store --exclude=robots.txt --delete build/ ${{ secrets.GIT_ZEKE_USER }}@${{ secrets.GIT_ZEKE_HOST }}:/var/www/domain.com/html/