Skip to content

Test for action

Test for action #8

Workflow file for this run

on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
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 }} > ~/.ssh/known_hosts
- name: Fetch
run: ssh nik@${{ secrets.SSH_HOST }} "sudo git -C /root/compositions/traefik/www/ouroboros.audio/html/ pull"
- name: Cleanup
run: rm -rf ~/.ssh