-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (52 loc) · 1.48 KB
/
create-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Create Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
# NOTE: Created release will trigger artifact compilation and we need to have SDK published for that
needs: publish-rust
steps:
- uses: actions/checkout@v3
- uses: softprops/action-gh-release@v1
with:
prerelease: true
# NOTE: Custom token is used so release event will be emitted
token: ${{ secrets.OPS_GITHUB_TOKEN }}
publish-rust:
runs-on: ubuntu-latest
env:
M10_PROTOBUFS: "${{ github.workspace }}/protobuf"
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v2
with:
path: "./rust"
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true
publish-node:
runs-on: ubuntu-latest
defaults:
run:
working-directory: node/m10-sdk
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-dart:
uses: dart-lang/setup-dart/.github/workflows/publish.yml@main
with:
working-directory: flutter/m10_sdk