forked from pinkfish/flutter_native_timezone
-
Notifications
You must be signed in to change notification settings - Fork 38
34 lines (32 loc) · 902 Bytes
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish
on:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
name: Publish to pub.dev
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
- uses: mikefarah/yq@3.3.0
with:
cmd: yq w -i pubspec.yaml 'version' "${GITHUB_REF#refs/tags/}"
- uses: subosito/flutter-action@v1
with:
channel: 'stable'
- run: dart --version
- run: flutter --version
- run: flutter pub get
- run: flutter test
- run: flutter pub publish --force
# - uses: EndBug/add-and-commit@v4
# with:
# author_name: Thomas Järvstrand
# author_email: tjarvstrand@gmail.com
# message: "Update version to {{ GITHUB_REF }}"
# add: "*"
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}