Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Analyze code

# Trigger the Analyze code workflow
on:
push:
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
# Set up Flutter for all other tasks.
setup:
runs-on: ${{ matrix.os }}
env:
PUB_CACHE: ~/.pub-cache

strategy:
matrix:
Expand All @@ -30,7 +30,15 @@ jobs:
channel: stable
flutter-version: ${{ secrets.FLUTTER_VERSION }}
cache: true


- name: Cache Pub dependencies
uses: actions/cache@v4
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-

- name: Disbale analytics of flutter
run: flutter config --no-analytics

Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: Build and Deploy to Netlify
on:
push:
tags:
- '*'
- "*"

jobs:
# Set up Flutter for all other tasks.
setup:
runs-on: ${{ matrix.os }}
env:
PUB_CACHE: ~/.pub-cache

strategy:
matrix:
Expand All @@ -31,6 +29,14 @@ jobs:
flutter-version: ${{ secrets.FLUTTER_VERSION }}
cache: true

- name: Cache Pub dependencies
uses: actions/cache@v4
with:
path: ~/.pub-cache
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-

- name: Disbale analytics of flutter
run: flutter config --no-analytics

Expand Down Expand Up @@ -58,9 +64,9 @@ jobs:
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v3.0
with:
publish-dir: './example/build/web'
publish-dir: "./example/build/web"
production-branch: master
production-deploy: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}