remove deploy.yml
This commit is contained in:
parent
330b0147fb
commit
fce0b99680
1 changed files with 0 additions and 32 deletions
|
|
@ -1,32 +0,0 @@
|
|||
name: Deploy to VPS
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- live
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.22'
|
||||
- name: Build
|
||||
run: go build -o potoforio main.go
|
||||
- name: Deploy
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
host: ${{ secrets.VPS_HOST }}
|
||||
username: ${{ secrets.VPS_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
source: "potoforio"
|
||||
target: "~/potoforio"
|
||||
- name: Restart service
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.VPS_HOST }}
|
||||
username: ${{ secrets.VPS_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: "sudo systemctl restart potoforio.service"
|
||||
Loading…
Add table
Add a link
Reference in a new issue