Skip to content

chore: deploy workflow added #6

chore: deploy workflow added

chore: deploy workflow added #6

Workflow file for this run

name: 🚀 Deploy - Demo
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deployment:
runs-on: ubuntu-latest
working-directory: typescript-version

Check failure on line 12 in .github/workflows/deploy-demo.yml

View workflow run for this annotation

GitHub Actions / 🚀 Deploy - Demo

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-demo.yml (Line: 12, Col: 5): Unexpected value 'working-directory'
env:
NUXT_APP_BASE_URL: ${{ secrets.NUXT_APP_BASE_URL }}
steps:
- name: ⚙️ Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: ⬇️ Checkout template
uses: actions/checkout@v4
- name: 📦 Generate demo
run: pnpm i && pnpm generate
- name: 🗄️ Ensure Dir on server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
script: |
mkdir -p ${{ secrets.PROD_DIR }}
- name: 🚀 Upload demo zip
uses: appleboy/scp-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
source: .output/public
target: ${{ secrets.PROD_DIR }}
strip_components: 2