-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.33 KB
/
pop_pop_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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: pop_pop
on:
push:
tags:
- pop_pop-v[0-9]+.[0-9]+.[0-9]+*
jobs:
pub_release:
defaults:
run:
working-directory: packages/pop_pop
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '2.8.1'
channel: "stable"
- run: flutter pub get
- run: flutter analyze
- name: Setup Pub Credentials
shell: bash
env:
PUB_DEV_PUBLISH_ACCESS_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
PUB_DEV_PUBLISH_REFRESH_TOKEN: ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
PUB_DEV_PUBLISH_TOKEN_ENDPOINT: ${{ secrets.PUB_DEV_PUBLISH_TOKEN_ENDPOINT }}
PUB_DEV_PUBLISH_EXPIRATION: ${{ secrets.PUB_DEV_PUBLISH_EXPIRATION }}
run: |
sh ../../tools/create_credentials.sh
- name: Check Publish Warnings
run: pub publish --dry-run
id: pubDryRun
- name: Publish Package
run: pub publish -f
if: steps.pubDryRun.outputs.exit_code == 0
id: pubPublish
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
if: steps.pubPublish.outputs.exit_code == 0
with:
generate_release_notes: true