chore(recordings): check target's jvmId for recording events (#1126) … #58
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: Generate Preview (CI) | |
concurrency: | |
group: ci | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- v[0-9]+ | |
- v[0-9]+.[0-9]+ | |
- cryostat-v[0-9]+.[0-9]+ | |
paths: | |
- 'src/**' | |
- '!src/test/**' | |
- 'webpack.*.js' | |
- 'yarn.lock' | |
- 'tsconfig.json' | |
jobs: | |
build-preview: | |
if: ${{ github.repository_owner == 'cryostatio' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- uses: bahmutov/npm-install@v1 | |
- name: Build assets | |
run: yarn build:preview:notests | |
- name: Publish to surge | |
run: | | |
FORMATTED_REF="$(echo ${{ github.ref_name }} | sed 's/\.//')" | |
DEPLOY_DOMAIN="${{ github.repository_owner }}-${{ github.event.repository.name }}-$FORMATTED_REF.surge.sh" | |
npx surge --project ./dist --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} |