-
Notifications
You must be signed in to change notification settings - Fork 39
57 lines (49 loc) · 1.46 KB
/
pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Flutter Pages Deployer
on:
workflow_dispatch:
push:
branches: [main]
paths:
- .github/workflows/pages.yml
- json_theme/pubspec.yaml
jobs:
build_number:
runs-on: ubuntu-latest
outputs:
buildnumber: ${{ steps.buildnumber.outputs.build_number }}
steps:
- name: Generate Build Number
id: buildnumber
uses: onyxmueller/build-tag-number@v1
with:
token: ${{secrets.GITHUB_TOKEN}}
- name: Build Number
run: echo "Build Number - $BUILD_NUMBER"
publish:
needs: build_number
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Run Codegen
run: |
flutter packages get
dart run build_runner build --delete-conflicting-outputs -v
working-directory: json_theme
- name: Validate
uses: peiffer-innovations/actions-flutter-validate@v1
with:
path: json_theme
- name: Web
uses: peiffer-innovations/actions-flutter-deploy-pages@v1
with:
build_flags: --no-tree-shake-icons
build_mode: release
build_number: ${{ needs.build_number.outputs.buildnumber }}
deploy_path: web
repo_url: https://github.com/${{ github.repository }}
source_path: json_theme/example
token: ${{ secrets.GITHUB_TOKEN }}