Skip to content

update readme

update readme #267

Workflow file for this run

name: Build web
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
env:
PUB_CACHE: ${{ github.workspace }}/.pub-cache
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
# optional parameters follow
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:" # optional, change this to force refresh cache of dart pub get dependencies
pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:" # optional, change this to specify the cache path
- run: flutter --version
- run: flutter build web --release --base-href /ShockAlarmApp/
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/web/ # The folder the action should deploy.