Skip to content

Commit f46cdb4

Browse files
ci: update env
1 parent 6f1eed7 commit f46cdb4

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,16 @@ jobs:
4545

4646
- name: Release
4747
run: |
48-
git config --global user.name $USER_NAME
49-
git config --global user.email $USER_EMAIL
5048
git remote set-url origin https://${GITHUB_TOKEN}@github.com/${REPOSITORY}
5149
yarn release
52-
env:
53-
USER_NAME: 'github-actions[bot]'
54-
USER_EMAIL: 'github-actions[bot]@users.noreply.github.com'
55-
REPOSITORY: ${{ github.repository }}
56-
GITHUB_TOKEN: ${{ github.token }} #GITHUB_TOKEN is required
5750
5851
- name: Deploy
5952
run: |
60-
git config --global user.name $USER_NAME
61-
git config --global user.email $USER_EMAIL
6253
git remote set-url origin https://${DEPLOY_ACCESS_TOKEN}@github.com/${REPOSITORY}
6354
yarn deploy -m "${{ github.event.head_commit.message }}"
64-
env:
65-
USER_NAME: 'github-actions[bot]'
66-
USER_EMAIL: 'github-actions[bot]@users.noreply.github.com'
67-
DEPLOY_ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
68-
REPOSITORY: ${{ github.repository }}
55+
env:
56+
USER_NAME: 'github-actions[bot]'
57+
USER_EMAIL: 'github-actions[bot]@users.noreply.github.com'
58+
GITHUB_TOKEN: ${{ github.token }} #GITHUB_TOKEN is required
59+
DEPLOY_ACCESS_TOKEN: ${{ secrets.DEPLOY_ACCESS_TOKEN }}
60+
REPOSITORY: ${{ github.repository }}

0 commit comments

Comments
 (0)