Skip to content

Commit

Permalink
TRY: WASM Build and deploy on Netlify again
Browse files Browse the repository at this point in the history
  • Loading branch information
rydmike committed Nov 16, 2024
1 parent e209609 commit ba71800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 40 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy_playground_netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ jobs:
run: flutter pub outdated

# Themes playground - Build and deploy to Netlify
- name: "EXAMPLE-5 START BUILD - Flutter clean before build"
- name: "Themes playground START BUILD - Flutter clean before build"
run: flutter clean && cd example && flutter clean
- name: "EXAMPLE-5 WEB release build"
run: cd example && flutter build web --wasm --release -t lib/example5_themes_playground/main.dart
- name: "Themes playground WEB WASM-GC release build"
run: cd example && flutter build web --wasm --release --base-href "/themesplayground/" -t lib/example5_themes_playground/main.dart
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.0
with:
publish-dir: './example/build/web'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
deploy-message: "Deploy to Netlify from GitHub Actions"
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: true
Expand Down
38 changes: 2 additions & 36 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,38 +1,4 @@
[[
headers
]]
for = "/*"
[
headers.values
]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"

[[
headers
]]
[[headers]]
for = "/*.wasm"
[
headers.values
]
[headers.values]
Content-Type = "application/wasm"

[[
headers
]]
for = "/main.dart.js"
[
headers.values
]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"

[[
headers
]]
for = "/flutter.js"
[
headers.values
]
Cross-Origin-Embedder-Policy = "require-corp"
Cross-Origin-Opener-Policy = "same-origin"

1 comment on commit ba71800

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.