generated from IHE/supplement-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1146a8a
commit 977d7fc
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
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/copy_images.sh | ||
|
||
- 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: | ||
artifacts: "sdpi-supplement.zip" | ||
body: [📋Please click here for a detailed changelog](https://github.com/IHE/DEV.SDPi/blob/release-$GITHUB_REF_NAME/CHANGELOG.md) |