generated from amosproj/amos202Xss0Y-projname
-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (67 loc) · 2.03 KB
/
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# SPDX-FileCopyrightText: 2024 Felix Hilgers <[email protected]>
#
# SPDX-License-Identifier: MIT
name: Release
on:
workflow_dispatch:
jobs:
gradle-build-release:
name: Gradle Build Release
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/setup-gradle-cache
- uses: ./.github/actions/setup-rust-cache
- name: Build Release
run: nix run .#gradleBuildRelease
- uses: actions/upload-artifact@v4
with:
name: frontend
path: /tmp/outputs/
rust-build-release:
name: Rust Build Release
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-base
- uses: ./.github/actions/setup-rust-cache
- name: Build Release
run: nix run .#rustBuildRelease
- uses: actions/upload-artifact@v4
with:
name: rust
path: /tmp/outputs/
create-release:
name: Release
runs-on: ubuntu-24.04
needs: ["rust-build-release", "gradle-build-release"]
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
- uses: anothrNick/github-tag-action@v1
id: tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
PRERELEASE: true
- uses: actions/download-artifact@v4
- uses: mikepenz/release-changelog-builder-action@v5
id: changelog
with:
fromTag: ${{ steps.tag.outputs.old_tag }}
toTag: ${{ steps.tag.outputs.new_tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: softprops/action-gh-release@v2
with:
body: ${{steps.changelog.outputs.changelog}}
prerelease: true
tag_name: ${{ steps.tag.outputs.tag }}
files: |
rust/libclient*.so
rust/daemon-*
frontend/app*.apk