release!: v3.0.1 #6
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: avatar_glow | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
semantic-pull-request: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/semantic_pull_request.yml@v1 | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Git Checkout | |
uses: actions/checkout@v3 | |
- name: π¦ Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.10.0 | |
channel: stable | |
cache: true | |
- name: π¦ Install Dependencies | |
run: flutter packages get | |
- name: β¨ Check Formatting | |
run: dart format --set-exit-if-changed lib | |
- name: π΅οΈ Analyze | |
run: flutter analyze lib | |
release: | |
needs: build | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | |
defaults: | |
run: | |
working-directory: example | |
steps: | |
- name: π Git Checkout | |
uses: actions/checkout@v3 | |
- name: π¦ Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: 3.10.0 | |
channel: stable | |
cache: true | |
- name: π Build and release | |
uses: bluefireteam/flutter-gh-pages@v8 | |
with: | |
baseHref: /avatar_glow/ | |
workingDir: example | |
pana: | |
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/pana.yml@v1 |