Release/2023.3 kinder #61
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-nym-connect-desktop | |
on: | |
pull_request: | |
paths: | |
- 'nym-connect/desktop/**' | |
defaults: | |
run: | |
working-directory: nym-connect/desktop | |
jobs: | |
build: | |
runs-on: custom-linux | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rsync | |
run: sudo apt-get install rsync | |
continue-on-error: true | |
- uses: rlespinasse/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install Yarn | |
run: npm install -g yarn | |
- name: Install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Install project dependencies | |
run: cd ../.. && yarn --network-timeout 100000 | |
- name: Install app dependencies | |
run: yarn | |
continue-on-error: true | |
- name: Set environment from the example | |
run: cp .env.sample .env | |
- run: yarn storybook:build | |
- name: Deploy branch to CI www | |
continue-on-error: true | |
uses: easingthemes/ssh-deploy@main | |
env: | |
SSH_PRIVATE_KEY: ${{ secrets.CI_WWW_SSH_PRIVATE_KEY }} | |
ARGS: "-rltgoDzvO --delete" | |
SOURCE: "nym-connect/desktop/storybook-static/" | |
REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} | |
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/nym-connect-${{ env.GITHUB_REF_SLUG }} | |
EXCLUDE: "/dist/, /node_modules/" | |
- name: Matrix - Node Install | |
run: npm install | |
working-directory: .github/workflows/support-files | |
- name: Matrix - Send Notification | |
env: | |
NYM_NOTIFICATION_KIND: nym-connect | |
NYM_PROJECT_NAME: "nym-connect" | |
NYM_CI_WWW_BASE: "${{ secrets.NYM_CI_WWW_BASE }}" | |
NYM_CI_WWW_LOCATION: "nym-connect-${{ env.GITHUB_REF_SLUG }}" | |
GIT_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}" | |
GIT_BRANCH: "${GITHUB_REF##*/}" | |
IS_SUCCESS: "${{ job.status == 'success' }}" | |
MATRIX_SERVER: "${{ secrets.MATRIX_SERVER }}" | |
MATRIX_ROOM: "${{ secrets.MATRIX_ROOM }}" | |
MATRIX_USER_ID: "${{ secrets.MATRIX_USER_ID }}" | |
MATRIX_TOKEN: "${{ secrets.MATRIX_TOKEN }}" | |
MATRIX_DEVICE_ID: "${{ secrets.MATRIX_DEVICE_ID }}" | |
uses: docker://keybaseio/client:stable-node | |
with: | |
args: .github/workflows/support-files/notifications/entry_point.sh |