chore: remove deprecation warning and add a todo comment #37
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: Build and Deploy to Web | |
| on: | |
| push: | |
| branches: [ main ] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| name: Checkout repository | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| name: Set up Flutter | |
| - name: Set up Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Get dependencies | |
| run: flutter clean && flutter pub get && flutter pub upgrade | |
| - name: Build Zenit UI for Web | |
| run: flutter build web --release | |
| working-directory: ./example | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './example/build/web/' | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@main |