Skip to content

Create issue1143.yml #1

Create issue1143.yml

Create issue1143.yml #1

Workflow file for this run

name: Release (Private Packages)
on:
workflow_dispatch:
jobs:

Check failure on line 4 in .github/workflows/issue1143.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/issue1143.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
version_or_release:
name: 'Version and open PR (or) release private packages'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: dev
- name: Set up SSH
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_RUNNER }}
- name: Add SSH known hosts
run: |
mkdir -p ~/.ssh
ssh-keyscan -p ${{ secrets.SSH_PORT }} ${{ secrets.HOST_DEV }} >> ~/.ssh/known_hosts
- name: Deploy to server
run: |
ssh -p ${{ secrets.SSH_PORT }} ${{ secrets.HOST_USER }}@${{ secrets.HOST_DEV }} << 'EOF'
cd /home/app
git checkout dev
git pull origin dev
yarn
yarn db:migrate
pm2 restart crm_backend
EOF