File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Flutter Web to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout Repository
18+ uses : actions/checkout@v4
19+
20+ # Note: This workflow uses the latest stable version of the Dart SDK.
21+ # You can specify other versions if desired, see documentation here:
22+ # https://github.com/dart-lang/setup-dart/blob/main/README.md
23+ # - uses: dart-lang/setup-dart@v1
24+ - name : Set up Flutter
25+ uses : dart-lang/setup-dart@9a04e6d73cca37bd455e0608d7e5092f881fd603
26+
27+ - name : Install dependencies
28+ run : dart pub get
29+
30+ # Consider passing '--fatal-infos' for slightly stricter analysis.
31+ - name : Analyze project source
32+ run : dart analyze
33+
34+
35+ - name : Build Web
36+ run : flutter build web --release --base-href "/Polizei-Flutter-Template/"
37+
38+ # Your project will need to have tests in test/ and a dependency on
39+ # package:test for this step to succeed. Note that Flutter projects will
40+ # want to change this to 'flutter test'.
41+ - name : Run tests
42+ run : dart test
43+
44+ - name : Deploy to GitHub Pages
45+ uses : peaceiris/actions-gh-pages@v3
46+ with :
47+ github_token : ${{ secrets.GITHUB_TOKEN }}
48+ publish_dir : build/web
You can’t perform that action at this time.
0 commit comments