Fix scroll pinned notes (#941) #1149
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: web | |
on: | |
# Triggers workflow on PR but only for main branch | |
push: | |
branches: [ main ] | |
# for release | |
tags: | |
- "v*.*.*" | |
pull_request: | |
branches: [ main ] | |
# Allows manual trigger from Actions tab | |
workflow_dispatch: | |
jobs: | |
build-web: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Adds env.json | |
env: | |
ENV_JSON: ${{ secrets.ENV_JSON }} | |
run: echo $ENV_JSON > env.json | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.13.5' | |
cache: true | |
channel: 'stable' | |
- run: flutter doctor -v | |
- run: flutter analyze | |
- run: flutter pub get | |
- run: flutter test | |
- run: ./build_web_app.sh | |
- run: ./build_web_ext.sh | |
- name: Rename files | |
run: | | |
mv build/web-ext-2.zip build/FleetingNotesWebExt2.zip | |
mv build/web-ext-3.zip build/FleetingNotesWebExt3.zip | |
mv build/web-app.zip build/FleetingNotesWebApp.zip | |
- uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
build/FleetingNotes*.zip | |
draft: true | |
fail_on_unmatched_files: true |