fix: main.yml #5 #86
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: CICD | |
on: | |
push: | |
branches: | |
- release | |
merge_group: | |
branches: | |
- release | |
jobs: | |
build: | |
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: Install sentry-cli | |
run: pnpm install -g @sentry/cli | |
- name: build | |
run: pnpm build | |
- name: Deploy to Server | |
uses: easingthemes/[email protected] | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_KEY }} | |
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
REMOTE_USER: root | |
SOURCE: /build | |
TARGET: /www/temp |