Skip to content

Commit 5bee1a8

Browse files
committed
chore: add deployment workflow to github pages
1 parent 790abd7 commit 5bee1a8

File tree

2 files changed

+59
-2
lines changed

2 files changed

+59
-2
lines changed

.github/workflows/deploy.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push:
4+
branches:
5+
- main
6+
workflow_dispatch:
7+
workflow_call:
8+
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout 🛎️
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Flutter
20+
uses: subosito/flutter-action@v2
21+
with:
22+
channel: stable
23+
- run: flutter doctor -v
24+
25+
- name: Install Melos
26+
run: dart pub global activate melos
27+
28+
- name: Melos Bootstrap
29+
run: melos bootstrap
30+
31+
- name: Generate Codes
32+
run: |
33+
melos generate_packages --no-select
34+
melos generate
35+
36+
- name: Setup chrome driver
37+
uses: nanasess/setup-chromedriver@v2
38+
39+
- name: Run chrome driver
40+
run: |
41+
chromedriver --port=4444 &
42+
43+
- name: Run Integration Tests
44+
run: melos ci_integration_test --no-select
45+
46+
- name: Create .env.prod file
47+
run: echo "${{ secrets.DOT_ENV_FILE }}" > .env.prod
48+
49+
- name: Update GITHUB_RUN_NUMBER to version
50+
run: melos update_version
51+
52+
- name: Build
53+
run: melos build_prod
54+
55+
- name: Deploy 🚀
56+
uses: JamesIves/github-pages-deploy-action@v4
57+
with:
58+
branch: gh-pages
59+
folder: "./build/web"

.github/workflows/netlify.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Deploy to Netlify
22

33
on:
4-
push:
5-
branches: [main]
64
workflow_dispatch:
75

86
jobs:

0 commit comments

Comments
 (0)