Skip to content

Commit d14ae5e

Browse files
committed
Enable preview workflow for dev branch and PRs to dev
1 parent 69f7e05 commit d14ae5e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/preview.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
push:
55
branches:
66
- main
7+
- dev
78
pull_request:
89
branches:
910
- main
11+
- dev
1012
workflow_dispatch:
1113

1214
jobs:
@@ -29,7 +31,7 @@ jobs:
2931
if [[ ${{ github.event_name }} == "pull_request" ]]; then
3032
export PUBLICPATH=PR${{ github.event.number }}
3133
else
32-
export PUBLICPATH=main
34+
export PUBLICPATH=$GITHUB_REF_NAME
3335
fi
3436
echo "PUBLICPATH=$PUBLICPATH" >> $GITHUB_ENV
3537
sed -i "s|publicPath: 'cff-initializer-javascript'|publicPath: '$PUBLICPATH'|" quasar.conf.js

0 commit comments

Comments
 (0)