-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (50 loc) · 1.45 KB
/
release-dart.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
47
48
49
50
51
52
53
54
name: Dart (release)
on:
workflow_dispatch:
inputs:
packageVersion:
description: 'Version to build'
required: true
default: ''
workflow_run:
workflows: ["Release Platform Libraries"]
branches: ["main", "v?.*"]
types:
- completed
jobs:
release-dart:
name: Release Dart Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Dart
uses: dart-lang/setup-dart@v1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- uses: trinsic-id/[email protected]
id: setversion
with:
githubToken: ${{ secrets.API_GITHUB_TOKEN }}
overrideVersion: ${{ github.event.inputs.packageVersion }}
- name: release-downloader
uses: robinraju/release-downloader@v1
with:
repository: trinsic-id/okapi
latest: true
token: ${{ secrets.API_GITHUB_TOKEN }}
fileName: "libs.zip"
- name: Install Dart dependencies
run: dart pub get
shell: pwsh
working-directory: dart
- name: Build, Test, Pack
run: |
python ../devops/build_sdks.py --language=dart
dart pub publish --dry-run
shell: pwsh
working-directory: dart
env:
API_GITHUB_TOKEN: ${{ secrets.API_GITHUB_TOKEN }}
LD_LIBRARY_PATH: "${{ github.workspace }}/libs"