Merge pull request #7 from sagar-a16z/support_vesting #14
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: Nym Wallet Storybook | |
on: | |
push: | |
paths: | |
- 'nym-wallet/**' | |
jobs: | |
build: | |
runs-on: custom-runner-linux | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install rsync | |
run: sudo apt-get install rsync | |
- uses: rlespinasse/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Build dependencies | |
run: yarn && yarn build | |
- name: Build storybook | |
run: yarn storybook:build | |
working-directory: ./nym-wallet | |
- 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: "nym-wallet/storybook-static/" | |
REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} | |
TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/wallet-${{ env.GITHUB_REF_SLUG }} | |
EXCLUDE: "/dist/, /node_modules/" | |
- name: Keybase - Node Install | |
run: npm install | |
working-directory: .github/workflows/support-files | |
- name: Keybase - Send Notification | |
env: | |
NYM_NOTIFICATION_KIND: nym-wallet | |
NYM_PROJECT_NAME: "nym-wallet" | |
NYM_CI_WWW_BASE: "${{ secrets.NYM_CI_WWW_BASE }}" | |
NYM_CI_WWW_LOCATION: "wallet-${{ env.GITHUB_REF_SLUG }}" | |
GIT_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}" | |
GIT_BRANCH: "${GITHUB_REF##*/}" | |
KEYBASE_NYMBOT_USERNAME: "${{ secrets.KEYBASE_NYMBOT_USERNAME }}" | |
KEYBASE_NYMBOT_PAPERKEY: "${{ secrets.KEYBASE_NYMBOT_PAPERKEY }}" | |
KEYBASE_NYMBOT_TEAM: "${{ secrets.KEYBASE_NYMBOT_TEAM }}" | |
KEYBASE_NYM_CHANNEL: "ci-nym-wallet" | |
IS_SUCCESS: "${{ job.status == 'success' }}" | |
uses: docker://keybaseio/client:stable-node | |
with: | |
args: .github/workflows/support-files/notifications/entry_point.sh |