File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change 3838 fi
3939 NODE_ENV=production npm run export
4040
41- - name : Set publish dir
42- id : dirs
43- run : |
44- if [ "${{ github.ref_name }}" = "refactor-2" ]; then
45- echo "dir=./out/preview" >> $GITHUB_OUTPUT
46- echo "dest=preview" >> $GITHUB_OUTPUT
47- else
48- echo "dir=./out" >> $GITHUB_OUTPUT
49- echo "dest=." >> $GITHUB_OUTPUT
50- fi
51-
5241 - name : Configure CNAME (prod only)
5342 if : github.ref_name == 'master'
5443 run : echo "jedabero.me" > out/CNAME
5847 with :
5948 github_token : ${{ secrets.GITHUB_TOKEN }}
6049 publish_branch : gh-pages
61- publish_dir : ${{ steps.dirs.outputs.dir }}
50+ publish_dir : ./out
6251 keep_files : true
63- destination_dir : ${{ steps.dirs.outputs.dest }}
52+ destination_dir : ${{ github.ref_name == 'refactor-2' && 'preview' || '.' }}
6453 user_name : github-actions[bot]
6554 user_email : github-actions[bot]@users.noreply.github.com
6655 commit_message : " deploy: ${{ github.ref_name }}"
You can’t perform that action at this time.
0 commit comments