Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ngullotta authored Nov 26, 2023
1 parent 67c50eb commit 6de1f79
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- main
workflow_dispatch:

jobs:
deply:
runs-on: ubuntu-latest

steps:
- name: Add SSH Key
run: |
install -m 600 -D /dev/null ~/.ssh/id_rsa
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_rsa
ssh-keyscan -H ${{ secrets.SSH_HOST_FINGERPRINT }} > ~/.ssh/known_hosts
- name: Fetch
run: ssh nik@$ouroboros.audio "sudo su && cd $HOME/compositions/traefik/www/ouroboros.audio/html/ && git checkout main && git pull && exit"
- name: Cleanup
run: rm -rf ~/.ssh

0 comments on commit 6de1f79

Please sign in to comment.