forked from flutter-tizen/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.26 KB
/
release.yml
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
name: Release
on:
pull_request:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'flutter-tizen' }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: subosito/flutter-action@v2
with:
channel: stable
- name: Dry run on pull request
if: ${{ github.event_name == 'pull_request' }}
run: |
./tools/tools_runner.sh publish \
--all-changed \
--pub-publish-flags=--dry-run \
--base-sha=HEAD~
- name: Wait on all tests
if: ${{ github.event_name == 'push' }}
uses: lewagon/[email protected]
with:
ref: ${{ github.sha }}
running-workflow-name: 'release'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 180 # seconds
allowed-conclusions: success
verbose: false
- name: Publish packages
if: ${{ github.event_name == 'push' }}
timeout-minutes: 5
env:
PUB_CREDENTIALS: ${{ secrets.PUB_CREDENTIALS }}
run: |
./tools/tools_runner.sh publish \
--all-changed \
--base-sha=HEAD~ \
--skip-confirmation