forked from pronze/SBA
-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (45 loc) · 1.44 KB
/
gradle-publish-dev.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
41
42
43
44
45
name: Pre-Builds dev versions
on:
push:
branches: [ dev ]
concurrency: sba_v157
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: dev
- name: Set up JDK 21 temurin
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Read value from Properties-file
id: read_property
uses: Reedyuk/[email protected]
with:
path: './gradle.properties'
property: 'SBA_VERSION'
- name: Declare some variables
id: vars
shell: bash
run: |
echo "{branch}=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_STATE
echo "{sha_short}=$(git rev-parse --short HEAD)" >> $GITHUB_STATE
- name: Build with Gradle
run: ./gradlew
env:
OPTIMIZE_FOR_CI_CD: "1"
BUILD_NUMBER: ${{ github.run_id }}
GITHUB_ACTIONS_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
GITHUB_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}"
- uses: ncipollo/release-action@v1
with:
artifacts: "LICENSE,plugin/build/libs/*.jar"
tag: ${{ steps.read_property.outputs.value }}-dev
allowUpdates: true
prerelease: true