actions(deploy): update again #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Liberation Staging | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy_to_server: | |
runs-on: sh-jb-1 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Stop App | |
run: | | |
docker stop liberation | |
- name: Fetch Updates and Restart App | |
run: | | |
cd ~/Liberation | |
git pull | |
docker compose up -d --build | |
- name: Send Commit done Message | |
uses: tsickert/discord-webhook@v5.4.0 | |
with: | |
webhook-url: ${{ secrets.WEBHOOK_URL }} | |
embed-title: Liberation Staging is now on commit `${{ github.sha }}`! | |
embed-description: | | |
Commit Message: ${{ github.event.head_commit.message }} | |
Author: ${{ github.triggering_actor }} | |
- name: Send Commit done Message on Roc testing server | |
uses: tsickert/discord-webhook@v5.4.0 | |
with: | |
webhook-url: ${{ secrets.WEBHOOK_URL_ROC }} | |
embed-title: Liberation Staging is now on commit `${{ github.sha }}`! | |
embed-description: | | |
Commit Message: ${{ github.event.head_commit.message }} | |
Author: ${{ github.triggering_actor }} | |