From a8018a0b2f3d04babc2341502a6b65034202755c Mon Sep 17 00:00:00 2001 From: Stepan Vladovskii Date: Wed, 24 Jan 2024 20:39:58 -0300 Subject: [PATCH] debug: simplify main.yml for actions --- .gitea/workflows/main.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index 6b899284..c634f98c 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -1,6 +1,8 @@ -name: 'deploy' +name: 'Deploy to discoursio-api' on: push: + branches: + - main jobs: deploy: @@ -11,15 +13,11 @@ jobs: with: fetch-depth: 0 - - name: Get Branch Name - id: branch_name - run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})" - - - name: Push to dokku + - name: Push to discoursio-api uses: dokku/github-action@master with: ssh-private-key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }} ssh-host: staging.discours.io ssh-user: dokku - app-name: ${{ steps.branch_name.outputs.branch == 'main' ? 'discoursio-api' : 'core' }} - git-remote-url: ${{ steps.branch_name.outputs.branch == 'main' ? 'ssh://dokku@staging.discours.io:22/discoursio-api' : 'ssh://dokku@staging.discours.io:22/core' }} \ No newline at end of file + app-name: discoursio-api + git-remote-url: ssh://dokku@staging.discours.io:22/discoursio-api