-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (45 loc) · 1.46 KB
/
release.yml
File metadata and controls
54 lines (45 loc) · 1.46 KB
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
46
47
48
49
50
51
52
53
54
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Build with Gradle
run: ./gradlew clean build
- name: Build distribution packages
run: ./gradlew buildRpm buildDeb shadowDistZip shadowDistTar
- name: Get version from tag
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
generate_release_notes: true
files: |
build/distributions/rundeck-plugin-bootstrap-*.tar
build/distributions/rundeck-plugin-bootstrap-*.zip
build/distributions/rundeck-plugin-bootstrap-shadow-*.tar
build/distributions/rundeck-plugin-bootstrap-shadow-*.zip
build/distributions/rundeck-plugin-bootstrap_*_all.deb
build/distributions/rundeck-plugin-bootstrap-*.noarch.rpm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}