Skip to content

Commit 7aaf098

Browse files
authored
Create dart.yml
1 parent 549dd8a commit 7aaf098

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/dart.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
tags:
10+
- 'v*'
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
jobs:
14+
# This workflow contains a single job called "build"
15+
build:
16+
# The type of runner that the job will run on
17+
runs-on: ubuntu-latest
18+
19+
# Steps represent a sequence of tasks that will be executed as part of the job
20+
steps:
21+
- uses: actions/checkout@v1
22+
- uses: actions/setup-java@v1
23+
with:
24+
java-version: '12.x'
25+
- uses: subosito/flutter-action@v1
26+
with:
27+
channel: dev
28+
- run: flutter pub get
29+
- run: flutter build apk
30+
- name: changelog
31+
uses: scottbrenner/generate-changelog-action@master
32+
id: Changelog
33+
env:
34+
REPO: ${{ github.repository }}
35+
- name: Action Release
36+
uses: yakuhzi/action-release@v1.2.0
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
with:
40+
tag_name: ${{ github.ref }}
41+
file: build/app/outputs/apk/release/app-release.apk
42+
changelogs: ${{ steps.Changelog.outputs.changelog }}

0 commit comments

Comments
 (0)