This commit is contained in:
Untone 2023-11-28 21:15:07 +03:00
parent ed3360d92b
commit a0bbaec242

View File

@ -31,13 +31,12 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Get Repo Name - name: Install Vercel CLI
id: repo_name run: |
run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})" npm install -g vercel
vercel --version
- name: Push to dokku - name: Deploy to Vercel
uses: dokku/github-action@master run: vercel --prod
with: env:
branch: 'main' VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}