[pull] develop from nymtech:develop #940
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: ci-build-ts | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- "ts-packages/**" | |
- "sdk/typescript/**" | |
- ".github/workflows/ci-build-ts.yml" | |
jobs: | |
build: | |
runs-on: arc-ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rsync | |
run: sudo apt-get install rsync | |
continue-on-error: true | |
- uses: rlespinasse/github-slug-action@v3.x | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Build | |
run: yarn && yarn build && yarn build:ci:storybook | |
- name: Deploy branch to CI www (storybook) | |
continue-on-error: true | |
uses: easingthemes/ssh-deploy@main | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.CI_WWW_SSH_PRIVATE_KEY }} | |
ARGS: "-rltgoDzvO --delete" | |
SOURCE: "ts-packages/dist/storybook/" | |
REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} | |
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/ts-${{ env.GITHUB_REF_SLUG }} | |
EXCLUDE: "/dist/, /node_modules/" | |
- name: Deploy branch to CI www (example) | |
continue-on-error: true | |
uses: easingthemes/ssh-deploy@main | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.CI_WWW_SSH_PRIVATE_KEY }} | |
ARGS: "-rltgoDzvO --delete" | |
SOURCE: "ts-packages/dist/example/" | |
REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} | |
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/ts-${{ env.GITHUB_REF_SLUG }}-example | |
EXCLUDE: "/dist/, /node_modules/" |