mirror of
https://github.com/nikdoof/dimension-sh-nikdoof-web.git
synced 2025-12-24 15:19:25 +00:00
Initial commit
This commit is contained in:
23
.github/workflows/deploy.yaml
vendored
Normal file
23
.github/workflows/deploy.yaml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
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: |
|
||||
cd ~/src/dimension-nikdoof
|
||||
sudo git config pull.ff only
|
||||
sudo git reset --hard
|
||||
sudo git pull
|
||||
Reference in New Issue
Block a user