Skip to content

Merge pull request #11 from corigne/corigne-patch-1 #4

Merge pull request #11 from corigne/corigne-patch-1

Merge pull request #11 from corigne/corigne-patch-1 #4

Workflow file for this run

name: Publish

Check failure on line 1 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

`jobs` is not a valid event name
on:
workflow_dispatch:
workflow_run:
workflows: ["Build, Test and Transfer"]
types: [completed]
jobs:
Prepare:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: cd ~/${{ secrets.DOMAIN }} && npm ci --omit dev
Publish:
needs: [Prepare]
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: pm2 restart ${{ secrets.DOMAIN }}