Skip to content

Commit 26b85c4

Browse files
committed
chore: fix gh-pages
1 parent d4f0adc commit 26b85c4

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,24 +43,15 @@ jobs:
4343
with:
4444
token: ${{ secrets.CODECOV_TOKEN }}
4545

46-
- name: Release
46+
- name: Release & deploy to GitHub Pages
4747
run: |
48-
git config --global user.name $USER_NAME
49-
git config --global user.email $USER_EMAIL
50-
git remote set-url origin https://${GITHUB_TOKEN}@github.com/${REPOSITORY}
48+
git config --global user.name $user_name
49+
git config --global user.email $user_email
50+
git remote set-url origin https://${github_token}@github.com/${repository}
5151
yarn release
52+
yarn deploy -m "${{ github.event.head_commit.message }}"
5253
env:
53-
USER_NAME: 'github-actions[bot]'
54-
USER_EMAIL: 'github-actions[bot]@users.noreply.github.com'
55-
GITHUB_TOKEN: ${{ github.token }}
56-
REPOSITORY: ${{ github.repository }}
57-
58-
- name: Deploy to GitHub Pages
59-
run: |
60-
node node_modules/gh-pages/bin/gh-pages-clean
61-
yarn deploy -m "${{ github.event.head_commit.message }}"
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
64-
USER_NAME: 'github-actions[bot]'
65-
USER_EMAIL: 'github-actions[bot]@users.noreply.github.com'
66-
REPOSITORY: ${{ github.repository }}
54+
user_name: 'github-actions[bot]'
55+
user_email: 'github-actions[bot]@users.noreply.github.com'
56+
github_token: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
57+
repository: ${{ github.repository }}

0 commit comments

Comments
 (0)