-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (69 loc) · 2.03 KB
/
publish.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
68
69
70
71
72
name: Build binary
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
cache: 'gradle'
- uses: actions/cache@v4
with:
path: "/home/runner/.konan"
key: ${{ runner.os }}-${{ hashFiles('**/build.gradle.kts') }}
- name: Install dependencies
run: |
sudo apt update
sudo apt install libcurl4-openssl-dev
- name: Build with Gradle
run: ./gradlew commonBinaries
- name: Move and apply correct permissions to binary
run: |
cp build/bin/common/releaseExecutable/slack-notifier-cli.kexe ./slack-notifier-cli
chmod +x ./slack-notifier-cli
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: slack-notifier-cli
path: slack-notifier-cli
change-log:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run changelog cli action
uses: monta-app/changelog-cli-action@main
with:
service-name: "Slack Notifier Cli"
github-release: true
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-app-name: "montaapp"
version-mode: "SemVer"
output: "console"
slack-token: ${{ secrets.SLACK_APP_TOKEN }}
slack-channel: "#releases"
- name: Download a single artifact
uses: actions/download-artifact@v4
with:
name: slack-notifier-cli
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: slack-notifier-cli
asset_name: slack-notifier-cli
tag: ${{ github.ref }}
overwrite: true