-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update web build command to fix 404 error and PWA padding issue (
#3) * chore: Update web build command to fix 404 error and PWA padding issue * chore: Update envfile creation in GitHub workflows * Disable web build
- Loading branch information
1 parent
7329784
commit 4671998
Showing
7 changed files
with
17 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,8 @@ jobs: | |
with: | ||
channel: beta | ||
cache: true | ||
# Not needed for tests but pubspec.yaml requires it | ||
- name: Make envfile | ||
uses: SpicyPizza/[email protected] | ||
with: | ||
envkey_API_URL: ${{ secrets.API_URL }} | ||
run: echo "API_URL=${{ secrets.API_URL }}" > .env | ||
|
||
- run: flutter test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ name: Github-Pages | |
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
@@ -21,18 +19,18 @@ jobs: | |
cache: true | ||
|
||
- name: Make envfile | ||
uses: SpicyPizza/[email protected] | ||
with: | ||
envkey_API_URL: ${{ secrets.API_URL }} | ||
|
||
- name: Run Tests | ||
run: flutter test | ||
run: echo "API_URL=${{ secrets.API_URL }}" > .env | ||
|
||
- name: Install dependencies | ||
run: flutter pub get | ||
|
||
- name: Run Tests | ||
run: flutter test | ||
|
||
# 404.html and flutter_bootstrap.js are mannually added to the web folder to | ||
# fix the 404 error on GH Pages and fix PWA Padding issue | ||
- name: Build web | ||
run: flutter build web --wasm --base-href /batucadapp/ | ||
run: flutter build web --wasm --base-href /batucadapp/ --no-web-resources-cdn | ||
|
||
- name: Commit changes | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters