-
-
Notifications
You must be signed in to change notification settings - Fork 241
38 lines (36 loc) · 1.02 KB
/
publish_beta.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
name: Publish Beta
on:
push:
tags:
- "*beta**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Get date
run: echo "DATE=$(date --rfc-3339=date)" >> ${GITHUB_ENV}
- name: Set Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> ${GITHUB_ENV}
- name: Build jar
run: ./gradlew build
env:
BUILD_SNAPSHOT: false
BUILD_ID: ${{env.RELEASE_VERSION}}
- name: Upload assets to GitHub
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
title: Beta Release ${{env.RELEASE_VERSION}}
files: |
build/libs/*