ci: Update to use reusable flutter code quality action (#116) #77
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: release-please | ||
on: | ||
push: | ||
branches: | ||
- main | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: googleapis/release-please-action@v4 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
code-quality: | ||
uses: ./.github/workflows/code-quality.yml | ||
Check failure on line 20 in .github/workflows/on-main.yml GitHub Actions / .github/workflows/on-main.ymlInvalid workflow file
|
||
deploy-qa-demo: | ||
name: Deploy preview version of the storybook on firebase | ||
needs: code-quality | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
cache: true | ||
- name: Setup flutter | ||
run: flutter pub get | ||
- name: Build example app | ||
run: | | ||
cd example | ||
flutter build web -t widgetbook/main.dart -o ../build --no-tree-shake-icons | ||
- uses: FirebaseExtended/action-hosting-deploy@v0 | ||
with: | ||
repoToken: "${{ secrets.GITHUB_TOKEN }}" | ||
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_ZETA_DS }}" | ||
channelId: "live" |