parent
7fa88650c3
commit
76300b5cc3
1 changed files with 31 additions and 18 deletions
|
@ -5,18 +5,16 @@ on:
|
|||
|
||||
jobs:
|
||||
build-web:
|
||||
runs:
|
||||
using: flutter-web-builder
|
||||
runs-on: flutter-web-builder
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
run: ls -la
|
||||
|
||||
- name: Cache Flutter
|
||||
id: cache-flutter
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ${{ HOME }}/.pub-cache
|
||||
path: ${{ HOME }}/.tool-cache
|
||||
key: ${{ forge.ref_name }}-flutter-cache-temp
|
||||
|
||||
- name: Cache pub dependencies
|
||||
|
@ -25,3 +23,18 @@ jobs:
|
|||
with:
|
||||
path: ${{ HOME }}/.pub-cache
|
||||
key: ${{ forge.ref_name }}-pub-cache-temp
|
||||
- name: Get dependencies
|
||||
run: flutter pub get
|
||||
|
||||
- name: Build web
|
||||
run: flutter build web --release
|
||||
|
||||
- name: List build output
|
||||
run: ls -la build/web/
|
||||
|
||||
# Optional: Archive the build artifacts
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: web-build
|
||||
path: build/web/
|
||||
|
|
Loading…
Add table
Reference in a new issue