Skip to content

Commit 537fd8c

Browse files
committed
lets hope
1 parent 8378608 commit 537fd8c

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

.github/workflows/pages.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ jobs:
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
@@ -58,9 +47,9 @@ jobs:
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 }}"

0 commit comments

Comments
 (0)