fix(db): enable auto-migration for all modes #25
Workflow file for this run
This file contains hidden or 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: release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: false # Disabled: use build-desktop.yml instead | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.22.x' | |
| - name: Setup Flutter (for web ui) | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.x' | |
| channel: 'stable' | |
| - name: Flutter pub get | |
| working-directory: frontend | |
| run: flutter pub get | |
| - name: Build artifacts | |
| run: | | |
| make package | |
| # Build Flutter web (hash routing by default works with index.html) | |
| cd frontend && flutter build web --release --no-tree-shake-icons --no-wasm-dry-run | |
| - name: Upload artifacts (for debugging) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: downloads | |
| path: web/downloads/** | |
| - name: Upload web (for pages) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: webapp | |
| path: frontend/build/web/** | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: false # Disabled: use build-desktop.yml instead | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: downloads | |
| path: web/downloads | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: web/downloads/* | |
| body: | | |
| ## Network Debugger Release | |
| Download binaries for your platform: | |
| ### macOS | |
| - [darwin_amd64.tar.gz](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/network-debugger-web_darwin_amd64.tar.gz) (Intel) | |
| - [darwin_arm64.tar.gz](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/network-debugger-web_darwin_arm64.tar.gz) (Apple Silicon) | |
| ### Linux | |
| - [linux_amd64.tar.gz](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/network-debugger-web_linux_amd64.tar.gz) (64-bit) | |
| - [linux_arm64.tar.gz](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/network-debugger-web_linux_arm64.tar.gz) (ARM64) | |
| ### Windows | |
| - [windows_amd64.zip](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/network-debugger-web_windows_amd64.zip) (64-bit) | |
| - [windows_386.zip](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/network-debugger-web_windows_386.zip) (32-bit) | |
| - [windows_arm64.zip](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/network-debugger-web_windows_arm64.zip) (ARM64) | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| pages: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.x' | |
| channel: 'stable' | |
| - name: Flutter pub get | |
| working-directory: frontend | |
| run: flutter pub get | |
| - name: Build Flutter web | |
| working-directory: frontend | |
| run: flutter build web --release --no-tree-shake-icons --no-wasm-dry-run | |
| - name: Copy web build | |
| run: | | |
| mkdir -p webapp | |
| cp -R frontend/build/web/* webapp/ | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: webapp | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 | |