Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BQXBQX authored Jan 23, 2024
1 parent 0b8913e commit f86d167
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: ui deploy
run-name: ${{ github.actor }} is Deploy 🚀
on:
push:
branches:
- main
paths-ignore:
- README.md

pull_request:
branches:
- main
paths-ignore:
- README.md

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Install rsync
run: sudo apt-get install rsync -y

- name: install pnpm
uses: pnpm/[email protected]
with:
version: 8
run_install: true

- name: pnpm i
run: |
pnpm i
- name: build
run: |
cd packages
cd ui
ls
pnpm run build
- name: Deploy to Server
uses: easingthemes/[email protected]
with:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
REMOTE_USER: admin
SOURCE: /packages/ui/storybook-static/
TARGET: /home/admin/www/storybook-static

0 comments on commit f86d167

Please sign in to comment.