Skip to content

Commit

Permalink
[deploy] add github action to deploy changes on prod (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
celestialaly committed Feb 19, 2025
1 parent 703a426 commit 2a26007
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: deploy changes to prod
on:
push:
branches:
- master
jobs:
build:
name: Deploy on prod
environment: prod
runs-on: ubuntu-latest
steps:
- name: run deploy script
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: ./deploy.sh

0 comments on commit 2a26007

Please sign in to comment.