Skip to content

Commit c8bf8c9

Browse files
committed
final update to workflow
1 parent 537fd8c commit c8bf8c9

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

.github/workflows/pages.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
- refactor-2
87
workflow_dispatch: {}
98

109
concurrency:
@@ -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 }}"

0 commit comments

Comments
 (0)