release: Bump version to 0.11.5 #549
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
name: Build | |
on: push | |
jobs: | |
env: | |
name: Environment consistency checks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- id: version | |
name: Ensure version number is consistent with branch type | |
run: make version-check | |
test: | |
strategy: | |
matrix: | |
java-version: [ 17, 21 ] | |
name: Test ${{ matrix.java-version }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: ${{ matrix.java-version }} | |
- name: Build application | |
run: ./mvnw --batch-mode verify -Pall-assemblies | |
- name: Re-run integration tests in opaque testing mode | |
run: ./mvnw --batch-mode verify -Pall-assemblies -DopaqueTesting=true | |
- name: Publish Unit Test Results | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
junit_files: target/surefire-reports/TEST-*.xml | |
- name: Upload test reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-reports-with-jdk-${{ matrix.java-version }} | |
path: | | |
target/surefire-reports/ | |
- name: Test standalone symly version | |
run: | | |
target/distributions/symly-*-standalone/bin/symly --version | |
target/distributions/symly-*-standalone/bin/symly --help | |
release: | |
name: Release | |
if: startsWith(github.ref, 'refs/heads/release/') | |
needs: [ env, test ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# required for jreleaser to properly compare tags and generate the changelog | |
fetch-depth: 0 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- id: read-version | |
run: | | |
VERSION=$(make version) | |
echo "version=$VERSION" >> $GITHUB_OUTPUT | |
- name: Build application | |
run: ./mvnw --batch-mode verify -Pall-assemblies | |
- name: Run JReleaser | |
uses: jreleaser/release-action@v2 | |
with: | |
version: 1.9.0 | |
arguments: full-release | |
env: | |
JRELEASER_PROJECT_VERSION: ${{ steps.read-version.outputs.version }} | |
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.SYMLY_PUBLISH_REPOS_TOKEN }} | |
- name: JReleaser release output | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jreleaser-release | |
path: | | |
out/jreleaser/output.properties | |
out/jreleaser/trace.log | |
out/jreleaser/release/CHANGELOG.md | |
- id: publish | |
env: | |
REPO_FEDORA_COPR_SYMLY_USERNAME: loicrouchon | |
REPO_FEDORA_COPR_SYMLY_PASSWORD: ${{ secrets.SYMLY_PUBLISH_REPOS_TOKEN }} | |
REPO_SYMLY_DEBIAN_USERNAME: loicrouchon | |
REPO_SYMLY_DEBIAN_PASSWORD: ${{ secrets.SYMLY_PUBLISH_REPOS_TOKEN }} | |
run: | | |
git config --global user.email "noreply@github.com" | |
git config --global user.name "GitHub CI publisher bot" | |
make publish |