Create main.yml #4
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: Build and Create PR | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
run: flutter --version | |
# - name: Set up flutter | |
# uses: subosito/flutter-action@v2 | |
# with: | |
# channel: 'stable' # or: 'beta', 'dev' or 'master' | |
# - run: flutter --version | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Build Flutter app | |
run: flutter build apk --release | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v3 | |
with: | |
token: ${{ secrets.PUSH}} | |
title: "Merge dev into qa" | |
body: "Automated pull request from dev to qa." | |
branch: qa |