Skip to content

Commit bed6bbd

Browse files
author
manuel.ott
committed
Creating automatic releases (GitHub Actions) (#27)
1 parent 6f30ec6 commit bed6bbd

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: Publish Tagged Release
4+
5+
# Controls when the action will run.
6+
on:
7+
push:
8+
tags:
9+
- "v*"
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
build:
18+
# The type of runner that the job will run on
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: ayltai/setup-graalvm@v1
24+
with:
25+
java-version: 11
26+
graalvm-version: 21.0.0.2
27+
native-image: true
28+
- name: Grant execute permission for gradlew
29+
run: chmod +x gradlew
30+
- name: Build with Gradle
31+
run: ./gradlew assemble --info
32+
- name: Build Native Image
33+
run: |
34+
java -version
35+
native-image -cp "build/layers/libs/*.jar:build/layers/resources/*:build/layers/application.jar" com.github.ottx96.Entrypoint
36+
find . -ls
37+
mv com.github.ottx96.entrypoint diffview-linux-amd64
38+
- uses: "marvinpinto/action-automatic-releases@latest"
39+
with:
40+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
41+
prerelease: false
42+
files: |
43+
diffview-linux-amd64

0 commit comments

Comments
 (0)