Skip to content

Commit

Permalink
add production deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
thes01 committed Jun 5, 2024
1 parent ad744ef commit cda2e1f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: production_deploy
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: SSH in production server
uses: appleboy/[email protected]
with:
script: cd /var/www/html/evangelickyzpevnik && make production-pull --silent && make 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/en/2/2b/Legolas600ppx.jpg"
with:
args: "Proběhlo produkční nasazení (frontend) na www.evangelickyzpevnik.cz! :tada:"

0 comments on commit cda2e1f

Please sign in to comment.