-
Notifications
You must be signed in to change notification settings - Fork 223
40 lines (37 loc) · 1.02 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
name: Create release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Install ninja
run: sudo apt-get update && sudo apt-get install ninja-build
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1
with:
cmake-version: '3.31.1'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Building project
run: ./gradlew build
- name: Compress files
run: zip -r -q executable.zip executable/
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
executable.zip