File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 99 push :
1010 branches :
1111 - main
12+ - v[0-9]+
13+ - v[0-9]+.[0-9]+
14+ - cryostat-v[0-9]+.[0-9]+
1215 paths :
1316 - ' src/**'
1417 - ' !src/test/**'
1922jobs :
2023 build-preview :
2124 if : ${{ github.repository_owner == 'cryostatio' }}
22- env :
23- DEPLOY_DOMAIN : ${{ github.repository_owner }}-${{ github.event.repository.name }}-main.surge.sh
2425 runs-on : ubuntu-latest
2526 steps :
2627 - uses : actions/checkout@v2
3334 run : yarn build:preview:notests
3435 - name : Publish to surge
3536 run : |
37+ FORMATTED_REF="$(echo ${{ github.ref_name }} | sed 's/\.//')"
38+ DEPLOY_DOMAIN="${{ github.repository_owner }}-${{ github.event.repository.name }}-$FORMATTED_REF.surge.sh"
3639 npx surge --project ./dist --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
You can’t perform that action at this time.
0 commit comments