Skip to content

Commit

Permalink
add deploy action for staging
Browse files Browse the repository at this point in the history
  • Loading branch information
thes01 committed Jun 4, 2024
1 parent 77bf2e6 commit 7c66bdc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: staging_deploy
on:
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: SSH in staging server
uses: appleboy/[email protected]
with:
script: cd /var/www/html/staging/evangelickyzpevnik-staging && make staging-pull --silent && make staging-deploy --silent
host: ${{ secrets.HOST }}
port: ${{ secrets.PORT }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.PRIVATE_KEY}}
passphrase: ${{ secrets.PRIVATE_KEY_PASSPHRASE}}
- name: Discord notification
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_DEPLOY_WEBHOOK_URL }}
DISCORD_USERNAME: "${{ github.workflow }} - ${{ github.event.repository.name }}"
DISCORD_AVATAR: "https://upload.wikimedia.org/wikipedia/sl/1/11/048029f362c484a2a46b928afbe98837.jpg"
with:
args: "Proběhlo vývojové nasazení (frontend) na dev.evangelickyzpevnik.cz! :tada:"

0 comments on commit 7c66bdc

Please sign in to comment.