Skip to content

Commit 20a894d

Browse files
Update cicd (#93)
* remove publish & add flutter-web deployment * add .obsidian and .DS_Store in gitignore * update docs for deployment
1 parent 36ccaa9 commit 20a894d

File tree

10 files changed

+18
-77
lines changed

10 files changed

+18
-77
lines changed

.github/workflows/deploy.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/web.yml renamed to .github/workflows/flutter-web.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
flutter-version: "3.22.2"
2727
cache: true
2828
channel: "stable"
29+
2930
- run: flutter doctor -v
3031
- run: flutter analyze
3132
- run: flutter pub get
@@ -35,6 +36,7 @@ jobs:
3536
flutter build web --dart-define-from-file=env.json
3637
cd ./build/web
3738
zip -r ../web.zip .
39+
3840
- name: Release
3941
uses: softprops/action-gh-release@v1
4042
if: startsWith(github.ref, 'refs/tags/')
@@ -43,6 +45,7 @@ jobs:
4345
flutter/build/web.zip
4446
draft: true
4547
fail_on_unmatched_files: true
48+
4649
- name: Deploy to Netlify
4750
uses: nwtgck/[email protected]
4851
if: github.event_name == 'pull_request'

.github/workflows/publish.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
.env
2+
3+
# misc
4+
.DS_Store
5+
.obsidian

docs/.DS_Store

-8 KB
Binary file not shown.
70.5 KB
Loading

docs/flutter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Welcome to my Flutter docs! Below is the project structure I use for the app.
1111
* `/flutter/lib/models` -> Class or interface definitions that are passed around
1212
* `/flutter/env.json` -> Environment variables for production
1313
* `/flutter/env.local.json` -> Environment variables for [local development](../supabase/local-development/pull-changes.md)
14-
* `/flutter/bumpversion.sh` -> Script used for [upgrading the app version](release.md)
14+
* `/flutter/bumpversion.sh` -> Script used for [upgrading the app version](./release.md)
1515

1616
:::warning
1717
Do NOT put sensitive keys into `env.json` or `env.local.json`

docs/flutter/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
sidebar_position: 3
33
---
4-
# Release (Github Actions)
4+
# Release (Netlify)
55

66
## Setup
77

docs/supabase/common-commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
sidebar_position: 4
2+
sidebar_position: 5
33
---
44
# Common Commands
55

docs/supabase/release.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
sidebar_position: 4
3+
---
4+
# Release (Supabase Github App)
5+
We run our deployments following best practices from [Supabase Managing Environments](https://supabase.com/docs/guides/cli/managing-environments).
6+
![](../assets/supabase-managing-env.png)
7+
8+
Then, we follow [database branching](https://supabase.com/docs/guides/platform/branching) to handle the deployments

0 commit comments

Comments
 (0)