-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (41 loc) · 1.19 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
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /
name: Create Release Binaries
jobs:
generate:
name: Create release-artifacts
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@main
- name: Build Binaries
run: |
yarn install
yarn build
yarn build:binaries
cd out
zip kyve-linux.zip kyve-linux
rm kyve-linux
zip kyve-macos.zip kyve-macos
rm kyve-macos
cd ..
- name: Generate Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v3
with:
configuration: ".github/workflows/configuration.json"
commitMode: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish the Release
uses: softprops/action-gh-release@v1
with:
body: ${{steps.github_release.outputs.changelog}}
tag_name: ${{ steps.vars.outputs.tag_name }}
files: out/*
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}