cat explanation in transaction-list #162
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: Build Frontend (main, stage-test & stage-prod) | |
on: | |
push: | |
branches: [ main, stage-test, stage-prod ] | |
paths: | |
- 'frontend/**' | |
- '.github/workflows/build-frontend.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm install | |
- run: npm run build | |
- run: npm test | |
- run: mv dist/mempool/browser/en-US/* dist/mempool/browser | |
- name: Deploy Frontend to `ordpool-space/ordpool-frontend-build` repo | |
if: ${{ github.ref_name != 'main' }} | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: npx angular-cli-ghpages --repo=https://github.com/ordpool-space/ordpool-frontend-build.git --branch=$GITHUB_REF_NAME --dir=dist/mempool/browser --name="The Buildbot" [email protected] --no-notfound --no-nojekyll |