-
-
Notifications
You must be signed in to change notification settings - Fork 11
42 lines (42 loc) · 1.2 KB
/
release.yaml
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
42
name: release
on:
push:
tags:
- v*
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Setup jdk11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Set Version
run: |
sed -i "s/\(project.version=\).*/\1${GITHUB_REF#refs/*/v}/g" src/main/resources/application.properties
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: Build & Test
run: ./gradlew genTsTypes build
- name: Store reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: build/reports/
- name: Save dist zip
run: cp build/distributions/*.zip .
- uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: ${{ endsWith(GitHub.ref, 'alpha') || endsWith(GitHub.ref, 'beta') }}
files: |
*.zip