add strip components #52
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: web client deploy production | |
on: | |
push: | |
branches: [master] | |
jobs: | |
deploy: | |
runs-on: ubuntu-22.04 | |
environment: production | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'yarn' | |
- name: build | |
run: | | |
yarn set version 3.7.0 | |
yarn install --immutable --immutable-cache | |
yarn web-client codegen | |
yarn web-client build | |
- name: scp | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
key: ${{ secrets.SSH_PEM_KEY }} | |
port: ${{ secrets.SSH_PORT }} | |
source: ./apps/web-client/build/* | |
target: ~/dialga/apps/web-client/build | |
strip_components: 3 |