Skip to content

Commit

Permalink
Update cicd (#93)
Browse files Browse the repository at this point in the history
* remove publish & add flutter-web deployment

* add .obsidian and .DS_Store in gitignore

* update docs for deployment
  • Loading branch information
matthewwong525 authored Sep 3, 2024
1 parent 36ccaa9 commit 20a894d
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 77 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/deploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
flutter-version: "3.22.2"
cache: true
channel: "stable"

- run: flutter doctor -v
- run: flutter analyze
- run: flutter pub get
Expand All @@ -35,6 +36,7 @@ jobs:
flutter build web --dart-define-from-file=env.json
cd ./build/web
zip -r ../web.zip .
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -43,6 +45,7 @@ jobs:
flutter/build/web.zip
draft: true
fail_on_unmatched_files: true

- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.0
if: github.event_name == 'pull_request'
Expand Down
59 changes: 0 additions & 59 deletions .github/workflows/publish.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
.env

# misc
.DS_Store
.obsidian
Binary file removed docs/.DS_Store
Binary file not shown.
Binary file added docs/assets/supabase-managing-env.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/flutter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Welcome to my Flutter docs! Below is the project structure I use for the app.
* `/flutter/lib/models` -> Class or interface definitions that are passed around
* `/flutter/env.json` -> Environment variables for production
* `/flutter/env.local.json` -> Environment variables for [local development](../supabase/local-development/pull-changes.md)
* `/flutter/bumpversion.sh` -> Script used for [upgrading the app version](release.md)
* `/flutter/bumpversion.sh` -> Script used for [upgrading the app version](./release.md)

:::warning
Do NOT put sensitive keys into `env.json` or `env.local.json`
Expand Down
2 changes: 1 addition & 1 deletion docs/flutter/release.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
sidebar_position: 3
---
# Release (Github Actions)
# Release (Netlify)

## Setup

Expand Down
2 changes: 1 addition & 1 deletion docs/supabase/common-commands.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 4
sidebar_position: 5
---
# Common Commands

Expand Down
8 changes: 8 additions & 0 deletions docs/supabase/release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
sidebar_position: 4
---
# Release (Supabase Github App)
We run our deployments following best practices from [Supabase Managing Environments](https://supabase.com/docs/guides/cli/managing-environments).
![](../assets/supabase-managing-env.png)

Then, we follow [database branching](https://supabase.com/docs/guides/platform/branching) to handle the deployments

0 comments on commit 20a894d

Please sign in to comment.