-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (64 loc) · 1.9 KB
/
cd.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: build
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
types:
- closed
jobs:
core:
name: 🤖 core
runs-on: ubuntu-latest
steps:
- name: 👇 Checkout
uses: actions/checkout@v3
- name: 📦 Setup Dart
if: ${{ !env.ACT }}
uses: dart-lang/setup-dart@v1
- name: 📦 Setup LCOV
if: ${{ !env.ACT }}
uses: hrishikesh-kadam/setup-lcov@v1
- name: ✍🏼 Version
id: version
uses: endaft/action-yamler@v1.0.9
with:
file: ./pubspec.yaml
path: version
set: ${{ format('-dev.{0}', github.run_number) }}
get: true
append: true
- name: 👷 Make
if: ${{ !env.ACT }}
run: make
- name: 🏷 Tags
uses: endaft/action-dev-tagger@v1.0.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
prefix: ${{ format('v{0}-dev.', steps.version.outputs.value_old) }}
tag: ${{ format('v{0}-dev.{1}', steps.version.outputs.value_old, github.run_number) }}
- name: ✍🏼 Changelog
id: changelog
uses: endaft/action-changelog@v0.0.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/changelog-config.js
- name: ✍🏼 Prepend Changelog
uses: endaft/action-prepend@v0.0.9
with:
file_target: CHANGELOG.md
value_in: ${{ steps.changelog.outputs.changelog }}
is_file: "false"
- name: 🚀 Publish
if: ${{ !env.ACT }}
uses: k-paxian/dart-package-publisher@v1.6
with:
accessToken: ''
refreshToken: ''
credentialJson: ${{secrets.PUB_DEV_CREDENTIALS}}
skipTests: true
- uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
flags: unittests