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 355f32f commit c7f7210
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- main
- develop
jobs:
build:
name: Build Web
env:
my_secret: ${{secrets.commit_secret}}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: subosito/flutter-action@v1
with:
channel: 'dev'
- run: flutter config --enable-web
- run: flutter pub get
- run: flutter build web --release
- run: |
cd build/web
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

0 comments on commit c7f7210

Please sign in to comment.