forked from TestFX/TestFX
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (37 loc) · 943 Bytes
/
release.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
---
name: Release
on:
push:
tags: [ '*' ]
permissions:
actions: read
checks: write
contents: read
issues: read
packages: read
pull-requests: write
statuses: read
security-events: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: 22
distribution: 'temurin'
- name: Publish Release
run: |
ver=$(./gradlew properties -q | grep "version:" | awk '{print $2}')
if [[ $ver != *"SNAPSHOT"* ]]
then
./gradlew publish -PgluonNexusDeployUsername=$NEXUS_USERNAME -PgluonNexusDeployPassword=$NEXUS_PASSWORD
fi
shell: bash
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}