Merge pull request #3 from CLucera/main #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' # or: 'beta' or 'master' | |
- run: flutter config --enable-web | |
- run: flutter pub get | |
- run: flutter test | |
- run: | | |
cd example/ | |
flutter pub get | |
flutter build web --release | |
git clone --single-branch "https://${{ secrets.PAT }}@github.com/bernaferrari/bernaferrari.github.io.git" "clone_dir" | |
rm -rf clone_dir/ColorBlindnessFlutter | |
cp -r build/web clone_dir/ColorBlindnessFlutter | |
cd clone_dir | |
git config user.name github-actions | |
git config user.email github-actions@github.com | |
git add * | |
git commit -m "generate ColorBlindnessFlutter" | |
git push |