Skip to content

Commit

Permalink
action-gh-release
Browse files Browse the repository at this point in the history
  • Loading branch information
serezhka committed Jan 7, 2023
1 parent a35b4bd commit 299a772
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on: [push]

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: zulu
- uses: gradle/gradle-build-action@v2
with:
gradle-version: 7.6
arguments: bootJar

- run: echo "tag=${REF##*/v}" >> $GITHUB_ENV

- uses: softprops/action-gh-release@v1
env:
token: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.tag }}
name: ${{ env.tag }}
draft: false
files: player/app/build/libs/*
4 changes: 4 additions & 0 deletions player/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ dependencies {
implementation 'com.dorkbox:SystemTray:4.1'

annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
}

bootJar {
archiveBaseName.set('java-airplay-server')
}

0 comments on commit 299a772

Please sign in to comment.