Files
dimension-sh-nikdoof-web/.github/workflows/deploy.yaml

25 lines
624 B
YAML

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
environment: production
runs-on: ubuntu-latest
steps:
- name: Setup ssh-agent
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
- name: Deploy to target system
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.TARGET_HOST }}
username: ${{ secrets.DEPLOYMENT_USER }}
port: 22
script: |
export PATH=~/bin:~/go/bin:$PATH
cd ~/src/dimension-nikdoof
make