Merge pull request #18 from Smalick0478/v2 #73
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: Testing Flutter Web Deploy | |
on: | |
push: | |
branches: | |
- v2 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and Push | |
steps: | |
- name: git-checkout | |
uses: actions/checkout@v2 | |
- name: Flutter setup | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: "3.22" | |
- name: Setup NodeJs | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "21" | |
- name: Set up JDK 15 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 15 | |
- name: Flutter Install Project Dependencies | |
run: flutter pub get | |
- name: Build Flutter web Project | |
run: flutter build web --release | |
- name: Push | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: build-testing # The branch name where you want to push the assets | |
FOLDER: build/web # The directory where your assets are generated | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub will automatically add this - you don't need to bother getting a token | |
MESSAGE: "Build: ({sha}) {msg}" # The commit message |