Skip to content

Commit 32dc277

Browse files
committed
Simplify deploy
1 parent b604090 commit 32dc277

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/gh_pages.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
11-
env:
12-
my_secret: ${{secrets.GH_TOKEN}}
1311
steps:
1412
- uses: actions/checkout@v2
1513
- uses: subosito/flutter-action@v1
@@ -25,11 +23,10 @@ jobs:
2523
run: |
2624
cd example/build/web
2725
git init
28-
git config --global user.email groovinchip@github.com
29-
git config --global user.name GroovinChip
30-
git status
31-
git remote add origin https://${{secrets.GH_TOKEN}}@github.com/GroovinChip/macos_ui.git
26+
git config user.name "CI"
27+
git config user.email "flutter-ci@github.com"
28+
git remote add secure-origin https://${{ secrets.GITHUB_TOKEN }}@github.com/GroovinChip/macos_ui.git
3229
git checkout -b gh-pages
33-
git add --all
30+
git add .
3431
git commit -m "update"
35-
git push origin gh-pages -f
32+
git push --force secure-origin gh-pages

0 commit comments

Comments
 (0)