Skip to content

👷 Added CI workflow for deployment #1

👷 Added CI workflow for deployment

👷 Added CI workflow for deployment #1

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Create SSH key
run: |
mkdir -p ~/.ssh/
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
sudo chmod 600 ~/.ssh/known_hosts
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
sudo chmod 600 ~/.ssh/id_rsa
shell: bash
- name: Run deploy script
run: ssh -o "IdentitiesOnly=yes" -i ~/.ssh/id_rsa github@s1.nicholemattera.gay /home/github/pbg-deploy.sh
shell: bash