chore(release): prepare 1.0.0-beta.9 (#85) #66
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: Deploy Kitchen Sink (Web) | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| flutter-version: '3.41.2' | |
| cache: true | |
| - run: flutter --version | |
| - run: flutter pub get | |
| - name: Ensure web platform files | |
| run: | | |
| if [ ! -d "web" ]; then | |
| flutter create --platforms web . | |
| fi | |
| working-directory: packages/example | |
| - run: flutter config --enable-web | |
| - run: flutter build web --release --base-href /naked_ui/ | |
| working-directory: packages/example | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: packages/example/build/web | |
| force_orphan: true | |
| publish_branch: gh-pages |