mirror of
https://github.com/nikdoof/dimension-sh-nikdoof-web.git
synced 2025-12-24 07:09:24 +00:00
22 lines
526 B
YAML
22 lines
526 B
YAML
name: Deploy
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
deploy:
|
|
name: Deploy
|
|
environment: production
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Deploy to target system
|
|
uses: appleboy/ssh-action@master
|
|
with:
|
|
host: ${{ secrets.TARGET_HOST }}
|
|
username: ${{ secrets.DEPLOYMENT_USER }}
|
|
key: ${{ secrets.DEPLOYMENT_SSH_KEY }}
|
|
port: 22
|
|
script: |
|
|
export PATH=~/bin:~/go/bin:$PATH
|
|
cd ~/src/dimension-nikdoof
|
|
make |