BQXBQX is Deploy π #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ui deploy | |
run-name: ${{ github.actor }} is Deploy π | |
on: | |
push: | |
branches: | |
- action-test | |
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 |