Skip to content

feat(cli): Attempt at patching the existing event with a new file rea… #26

feat(cli): Attempt at patching the existing event with a new file rea…

feat(cli): Attempt at patching the existing event with a new file rea… #26

Workflow file for this run

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