Merge pull request #591 from the-hideout/update-deployments #1
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
if: github.event_name == 'push' | |
environment: production | |
runs-on: ubuntu-latest | |
steps: | |
- name: deployment check | |
uses: github/[email protected] | |
id: deployment-check | |
with: | |
merge_deploy_mode: "true" | |
environment: production | |
- uses: actions/checkout@v4 | |
if: ${{ steps.deployment-check.outputs.continue == 'true' }} | |
- name: SSH Remote Deploy | |
if: ${{ steps.deployment-check.outputs.continue == 'true' }} | |
uses: appleboy/ssh-action@7eaf76671a0d7eec5d98ee897acda4f968735a17 # [email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
script_stop: true | |
script: ~/tarkov-data-manager/script/deploy -r "main" -d "/home/tdm/tarkov-data-manager" |