Skip to content

Commit

Permalink
ci: use subosito flutter action
Browse files Browse the repository at this point in the history
  • Loading branch information
AladdineDev committed Feb 6, 2024
1 parent 083779b commit 30d3908
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,21 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Flutter
run: |
git clone https://github.com/flutter/flutter.git --depth 1 -b stable _flutter
echo "${GITHUB_WORKSPACE}/_flutter/bin" >> ${GITHUB_PATH}
- name: Install
run: |
flutter config --enable-web
flutter pub get
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
cache: true

- name: Install dependencies
run: flutter pub get

- name: Code generation
run: |
dart run build_runner build -d
dart run easy_localization:generate -S assets/translations -f json -O lib/src/localization/generated -o locale_json.g.dart
dart run easy_localization:generate -S assets/translations -f keys -O lib/src/localization/generated -o locale_keys.g.dart
- name: Set Base Href
- name: Set base-href
id: set_base_href
run: |
if [[ -z "${{ vars.CNAME }}" ]]; then
Expand Down

0 comments on commit 30d3908

Please sign in to comment.