Gh-Pages #25
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: Gh-Pages | |
| on: workflow_dispatch | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/[email protected] | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| channel: 'stable' | |
| cache: true | |
| - uses: bluefireteam/melos-action@main | |
| - name: Install Dependencies | |
| run: melos bootstrap | |
| - run: melos exec --scope mini_sprite_editor flutter build web --release --base-href / | |
| shell: bash | |
| - run: git config user.name github-actions | |
| shell: bash | |
| - run: git config user.email [email protected] | |
| shell: bash | |
| - run: git --work-tree packages/mini_sprite_editor/build/web add --all | |
| shell: bash | |
| - run: git commit -m "Automatic deployment by github-actions" | |
| shell: bash | |
| - run: git push origin HEAD:gh-pages --force | |
| shell: bash | |