generated from bridgelightcloud/github-mirror-template
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.81 KB
/
release-build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Release Build
on:
push:
tags:
- '*'
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Setup gradle
uses: gradle/actions/setup-gradle@v4
- name: Create HTML with Gradle
run: ./gradlew run --args="--input-file ../../asciidoc/sdpi-supplement.adoc --output-folder ../../sdpi-supplement --github-token ${{ secrets.SDPI_API_ACCESS_TOKEN_SECRET }} --backend html"
working-directory: .ci/asciidoc-converter
- name: Generate PlantUML diagrams and copy images
run: .github/prepare_artifacts.sh "${{ github.ref_name }}"
- name: Upload artifact
# if: success() && github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v3
with:
name: sdpi-supplement
path: sdpi-supplement
- name: Create release page
uses: ncipollo/release-action@v1
with:
name: "Release of ${{ github.ref_name }} for TI"
makeLatest: true
body: "[📋Please click here for a detailed changelog](https://github.com/IHE/DEV.SDPi/blob/${{ github.ref_name }}/CHANGELOG.md)"
artifacts: "sdpi-supplement-${{ github.ref_name }}.zip"