Merge pull request #6 from hkk97/dev-klaus #10
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: GitHubPageCICD | |
on: | |
push: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set Flutter version | |
uses: subosito/[email protected] | |
with: | |
flutter-version: "${{ github.event.inputs.flutter_version }}" | |
- name: Install packages | |
run: | | |
flutter config --enable-web | |
cd example | |
flutter pub get | |
- name: Flutter build Web | |
run: | | |
cd example | |
flutter build web --web-renderer html --no-sound-null-safety -dart-define=FLUTTER_WEB_USE_SKIA=true | |
- name: Deploy to GitHub Page | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: example/build/web | |
force_orphan: true |