BQXBQX is Deploy π #1
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: npm i | |
run: | | |
npm i | |
- name: cd ui | |
run: | | |
cd /packages/ui | |
- name: build | |
run: | | |
npm 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: /doc_build/ | |
TARGET: /home/admin/www/storybook-static |