Skip to content

Commit

Permalink
add deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-streltsov committed Sep 5, 2024
1 parent 1345b8f commit e660797
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy

on:
push:
branches:
- master
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Deploy to VPS
uses: will-lynas/go-vps-deploy@main
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
branch-name: master

0 comments on commit e660797

Please sign in to comment.