-
Notifications
You must be signed in to change notification settings - Fork 3
60 lines (53 loc) · 1.47 KB
/
build_and_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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build and release
on:
push:
tags:
- "v*"
jobs:
create-release:
runs-on: ubuntu-latest
outputs:
release: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Read ChangeLog
uses: juliangruber/read-file-action@v1
id: changelog
with:
path: ./CHANGELOG.md
- name: release
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
body: ${{steps.changelog.outputs.content}}
env:
GITHUB_TOKEN: ${{ github.token }}
build-windows:
needs: [create-release]
uses: ./.github/workflows/build_windows.yml
secrets: inherit
with:
release-upload-url: ${{ needs.create-release.outputs.release }}
app-name: "adb-ui"
version: ${{ github.ref }}
build-linux:
needs: [create-release]
uses: ./.github/workflows/build_linux.yml
secrets: inherit
with:
release-upload-url: ${{ needs.create-release.outputs.release }}
app-name: "adb-ui"
version: ${{ github.ref }}
build-macos:
needs: [create-release]
uses: ./.github/workflows/build_macos.yml
secrets: inherit
with:
release-upload-url: ${{ needs.create-release.outputs.release }}
app-name: "adb-ui"
version: ${{ github.ref }}