You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`.github/workflows/all-builds.yml`](.github/workflows/all-builds.yml)| Builds for Linux, macOS, Windows, AAB, APK, IPA, and Web in one workflow |
14
-
|[`.github/workflows/web-build-and-github-pages-deploy.yml`](.github/workflows/web-build-and-github-pages-deploy.yml)| Builds for Web and deploys to GitHub Pages |
15
-
|[`pyproject.toml`](pyproject.toml)| Example Flet project configuration |
16
-
|[`src/main.py`](src/main.py)| Example Flet app to test the workflows |
|[`.github/workflows/all-builds.yml`](.github/workflows/all-builds.yml)| Builds for Linux, macOS, Windows, AAB, APK, IPA, and Web.<br>More details [here](https://docs.flet.dev/publish/#github-actions). |
16
+
|[`.github/workflows/web-build-and-github-pages-deploy.yml`](.github/workflows/web-build-and-github-pages-deploy.yml)| Builds the web app and deploys it to GitHub Pages.<br><br>Uses:<br>• `--base-url ${GITHUB_REPOSITORY#*/}` (repository name as base URL)<br>• `--route-url-strategy hash` (recommended for static hosts like GitHub Pages) |
17
+
|[`pyproject.toml`](pyproject.toml)| Example Flet project configuration |
18
+
|[`src/main.py`](src/main.py)| Example Flet app to test the workflows |
19
+
17
20
18
21
**Quick start:**
19
22
1. Copy the workflow(s) you need into your own repository under `.github/workflows/`.
20
23
2. Push to GitHub or run manually from the Actions tab of your repository.
21
24
22
-
## Workflow details
23
-
24
-
### `all-builds.yml`
25
-
26
-
- Uses `uv` for Python and command execution.
27
-
- Uses a matrix strategy to build: `linux`, `macos`, `windows`, `aab`, `apk`, `ipa`, `web`.
28
-
- Uploads one artifact per target with the pattern `<target>-build-artifact`.
29
-
- Includes a Linux dependency installation step only when needed for Linux desktop builds.
30
-
- Supports manual runs via `workflow_dispatch`.
31
-
32
-
### `web-build-and-github-pages-deploy.yml`
33
-
34
-
- Builds the web app with:
35
-
-`--base-url ${GITHUB_REPOSITORY#*/}` (repository name as base URL)
36
-
-`--route-url-strategy hash` (good for static hosts like GitHub Pages)
37
-
- Uploads `build/web` as a Pages artifact named `web-build-artifact` with `retention-days: 20`.
38
-
- Deploys only on push to the `main` branch.
39
-
- Supports manual runs via `workflow_dispatch`.
40
-
41
25
## Common customization points
42
26
43
27
- Triggers: adjust `push`, `pull_request`, and `workflow_dispatch` for your flow.
0 commit comments