Skip to content

Commit

Permalink
chore: update CI workflow branches and add deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffnawroth committed Dec 21, 2024
1 parent 1cd788d commit 04e2be2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [main, vite]
branches: [main, development]
pull_request:
branches: [main]

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy

on:
push:
branches:
- main

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.2.0

with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
passphrase: ${{ secrets.PASSPHRASE }}
script: |
cd ${{ secrets.DEPLOY_PATH }}
eval "$(ssh-agent -s)"
echo "${{ secrets.PASSPHRASE }}" | ssh-add ${{ secrets.KEY_PATH }}
git pull origin main
export NVM_DIR=~/.nvm
source ~/.nvm/nvm.sh
pnpm install
pnpm docs:build

0 comments on commit 04e2be2

Please sign in to comment.