-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.43 KB
/
build.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
name: Build CLI
on: [push]
jobs:
release:
runs-on: ubuntu-latest
needs: [build-linux, build-macos]
permissions:
contents: write
steps:
- name: Download Linux build
uses: actions/download-artifact@v3
if: startsWith(github.ref, 'refs/tags/')
with:
name: ds-api-client-linux
- name: Download macOS build
uses: actions/download-artifact@v3
if: startsWith(github.ref, 'refs/tags/')
with:
name: ds-api-client-macos
- name: Release
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generateReleaseNotes: true
artifacts: "ds-api-client-linux, ds-api-client-macos"
artifactErrorsFailBuild: true
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run compile
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ds-api-client-linux
path: ds-api-client
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
- run: bun install
- run: bun run compile
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: ds-api-client-macos
path: ds-api-client