Add android SCHEDULE_EXACT_ALARM permission #1383
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
name: Deploy web | |
on: | |
push: | |
branches: | |
- '**' | |
tags-ignore: | |
- '**' | |
workflow_dispatch: | |
env: | |
FLUTTER_VERSION: "3.24.3" | |
jobs: | |
deploy-web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Extract branch name | |
id: extract-branch-name | |
run: | | |
echo ${GITHUB_REF#refs/heads/} | |
echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: "stable" | |
flutter-version: ${{ env.FLUTTER_VERSION }} | |
cache: true | |
- run: | | |
flutter --version | |
flutter pub get | |
- name: Build with default auto web-renderer | |
run: | | |
dart ./scripts/gen_git_info.dart | |
flutter build web --release --web-renderer auto -v --source-maps | |
dart ./scripts/patch_web_build.dart | |
- name: Publish to app repo ${{ steps.extract-branch-name.outputs.BRANCH_NAME }} branch | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
repo: chaldea-center/app | |
target_branch: ${{ steps.extract-branch-name.outputs.BRANCH_NAME }} | |
build_dir: build/web | |
env: | |
GH_PAT: ${{ secrets.GH_PAGES_TOKEN }} | |
- uses: yizhoumo/setup-ossutil@v2 | |
if: github.ref == 'refs/heads/main' | |
with: | |
ossutil-version: "1.7.18" | |
endpoint: ${{ secrets.OSS_ENDPOINT }} | |
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }} | |
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }} | |
- name: Publish to OSS | |
if: github.ref == 'refs/heads/main' | |
run: dart ./scripts/publish_oss.dart ${{ secrets.OSS_BUCKET_NAME }} |