Skip to content

Commit

Permalink
ci: build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
borgoat committed Jan 2, 2024
1 parent 6d20bb8 commit a70b8d1
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build
on:
push:
branches:
- main
jobs:
web:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get Flutter
uses: subosito/[email protected]
with:
channel: 'stable'
- name: Download dependencies
run: flutter pub get
# - run: flutter test # TODO Needs supabase
- name: Configure git user
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "[email protected]"
- name: Compile web and put in gh-pages branch
run: dart run peanut
- name: Push gh-pages
run: git push origin gh-pages
24 changes: 24 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.4.1"
build_cli_annotations:
dependency: transitive
description:
name: build_cli_annotations
sha256: b59d2769769efd6c9ff6d4c4cede0be115a566afc591705c2040b707534b1172
url: "https://pub.dev"
source: hosted
version: "2.1.0"
build_config:
dependency: transitive
description:
Expand Down Expand Up @@ -455,6 +463,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.0"
git:
dependency: transitive
description:
name: git
sha256: "1982737427ef1ef2bb69027ea0234469774495e86afe202de81ee46d37364e55"
url: "https://pub.dev"
source: hosted
version: "2.2.1"
glob:
dependency: transitive
description:
Expand Down Expand Up @@ -804,6 +820,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.2.1"
peanut:
dependency: "direct dev"
description:
name: peanut
sha256: "7dfafd7dad32f94863fe93d7ed59e0c5fb585fd9f874ff05c534f66995e2b2fb"
url: "https://pub.dev"
source: hosted
version: "5.0.0"
petitparser:
dependency: transitive
description:
Expand Down
3 changes: 3 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ dev_dependencies:
integration_test:
sdk: flutter

# To deploy to CloudFlare Pages
peanut: ^5.0.0

# To manage app flavours
flutter_flavorizr: ^2.2.1

Expand Down

0 comments on commit a70b8d1

Please sign in to comment.