Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Merge pull request #60 from GrantBirki/dependabot/github_actions/Gran… #66

Merge pull request #60 from GrantBirki/dependabot/github_actions/Gran…

Merge pull request #60 from GrantBirki/dependabot/github_actions/Gran… #66

Workflow file for this run

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/branch-deploy@v9
id: deployment-check
with:
merge_deploy_mode: "true"
environment: production
- name: checkout
if: ${{ steps.deployment-check.outputs.continue == 'true' }}
uses: actions/checkout@v4
- name: ssh remote deploy
if: ${{ steps.deployment-check.outputs.continue == 'true' }}
uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # pin@v1.0.3
with:
host: ${{ vars.SSH_HOST }}
port: ${{ vars.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script_stop: true
script: ~/ghostfolio/script/deploy -r="main" -d="ghostfolio"