Skip to content

Commit

Permalink
update: github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
LinXunFeng committed Mar 30, 2024
1 parent fcd298b commit 0a8413e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ jobs:
flutter pub get
flutter build web --release
- name: Deploy
working-directory: ./example/build/web
run: |
git init
git config --global user.email LinXunFeng
git config --global user.name linxunfeng@yeah.net
git status
git remote add origin https://${{secrets.commit_secret}}@github.com/fluttercandies/flutter_scrollview_observer.git
git checkout -b gh-pages
git add --all
git commit -m "update"
git push origin gh-pages -f
working-directory: ./example
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/web
force_orphan: true
user_name: 'github-ci[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: 'Publish to gh-pages'

0 comments on commit 0a8413e

Please sign in to comment.