mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-20 22:28:30 +01:00
38 lines
948 B
YAML
38 lines
948 B
YAML
name: connect-explorer build and deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
paths:
|
|
- "packages/connect-explorer/**"
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
|
|
- name: Build connect-explorer
|
|
run: |
|
|
npm install -g yarn && yarn install
|
|
yarn build:libs
|
|
yarn workspace @trezor/connect-explorer build
|
|
|
|
- name: Deploy connect-explorer
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
if: ${{ github.ref == 'refs/heads/develop' }}
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./packages/connect-explorer/build
|
|
destination_dir: connect-explorer
|
|
publish_branch: gh-pages
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.TREZOR_BOT_TOKEN }}
|