File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - master
7- - refactor-2
87 workflow_dispatch : {}
98
109concurrency :
@@ -32,24 +31,18 @@ jobs:
3231
3332 - name : Build static export
3433 run : |
35- if [ "${{ github.ref_name }}" = "refactor-2" ]; then
36- export NEXT_BASE_PATH="/preview"
37- export NEXT_ASSET_PREFIX="/preview"
38- fi
34+ unset NEXT_BASE_PATH
35+ unset NEXT_ASSET_PREFIX
3936 NODE_ENV=production npm run export
4037
41- - name : Configure CNAME (prod only)
42- if : github.ref_name == 'master'
43- run : echo "jedabero.me" > out/CNAME
44-
4538 - name : Deploy to gh-pages
4639 uses : peaceiris/actions-gh-pages@v4
4740 with :
4841 github_token : ${{ secrets.GITHUB_TOKEN }}
4942 publish_branch : gh-pages
5043 publish_dir : ./out
51- keep_files : true
52- destination_dir : ${{ github.ref_name == 'refactor-2' && 'preview' || '.' }}
44+ keep_files : false
45+ destination_dir : .
5346 user_name : github-actions[bot]
5447 user_email : github-actions[bot]@users.noreply.github.com
5548 commit_message : " deploy: ${{ github.ref_name }}"
You can’t perform that action at this time.
0 commit comments