You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
669 B
YAML

name: Deploy Prod
on:
push:
tags:
- 'v*'
jobs:
deploy-prod:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Task
uses: arduino/setup-task@v2
- name: Setup SSH agent
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Deploy to prod host
env:
DEPLOY_HOST: ${{ secrets.PROD_DEPLOY_HOST }}
DEPLOY_USER: ${{ secrets.PROD_DEPLOY_USER }}
DEPLOY_PATH: ${{ secrets.PROD_DEPLOY_PATH }}
DEPLOY_REF: ${{ github.ref_name }}
run: task cd:deploy-prod