Skip to content

Commit 83a576f

Browse files
authored
Merge pull request #34 from mateuseap/develop
Raname and fix CD workflow
2 parents be8441d + 12b31cd commit 83a576f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/deploy.yml renamed to .github/workflows/cd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Git setup
15-
run: |
16-
git config --global user.name github-actions[bot]
17-
git config --global user.email github-actions[bot]@users.noreply.github.com
18-
1914
- name: Install dependencies
2015
run: npm install
2116

2217
- name: Build
2318
run: npm run build
2419

2520
- name: Deploy
26-
run: npm run deploy
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: |
24+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
25+
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"

0 commit comments

Comments
 (0)