From c8ba8c1453d7c6cde2bd0420ee54d94c625f7fcf Mon Sep 17 00:00:00 2001 From: Untone Date: Tue, 21 May 2024 03:03:59 +0300 Subject: [PATCH] yml-fix --- .gitea/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/main.yml b/.gitea/workflows/main.yml index e39bea6..8bc742b 100644 --- a/.gitea/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -1,4 +1,4 @@ -name: 'deploy' +name: "deploy" on: [push] jobs: @@ -15,18 +15,18 @@ jobs: id: branch_name run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})" - - name: Push to staging - if: steps.branch_name.outputs.branch == 'discours' + - name: Push branch 'discours-dev' to staging.discours.io + if: steps.branch_name.outputs.branch == 'discours-dev' uses: dokku/github-action@master with: - branch: 'main' - git_remote_url: 'ssh://dokku@staging.discours.io:22/authorizer' + branch: "main" + git_remote_url: "ssh://dokku@staging.discours.io:22/authorizer" ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} - - name: Push to v2 + - name: Push 'discours' to v2.discours.io if: steps.branch_name.outputs.branch == 'discours' uses: dokku/github-action@master with: - branch: 'main' - git_remote_url: 'ssh://dokku@v2.discours.io:22/authorizer' + branch: "main" + git_remote_url: "ssh://dokku@v2.discours.io:22/authorizer" ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}