Skip to content

updated the deployment script #364

updated the deployment script

updated the deployment script #364

Workflow file for this run

name: Deploy
on: pull_request
types: [labeled]

Check failure on line 3 in .github/workflows/deploy.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yaml

Invalid workflow file

You have an error in your yaml syntax on line 3
jobs:
deploy:
name: 'Deploy to production'
runs-on: ubuntu-latest
if: github.event.label.name == 'deploy'
# needs: test
steps:
- uses: actions/checkout@v4
- name: Configure SSH
run: |
mkdir -p ~/.ssh/
echo "$SSH_KEY" > ~/.ssh/staging.key
chmod 600 ~/.ssh/staging.key
cat >>~/.ssh/config <<END
Host staging
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/staging.key
StrictHostKeyChecking no
END
env:
SSH_USER: ${{ secrets.STAGING_SSH_USER }}
SSH_KEY: ${{ secrets.STAGING_SSH_KEY }}
SSH_HOST: ${{ secrets.STAGING_SSH_HOST }}
- name: Run deploy script
run: ssh staging '~/asleepace.com/scripts/deploy.sh'