be able to update server.xml under project #26
Workflow file for this run
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: tagbuild | |
on: | |
push: | |
tags: | |
- 'release*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Check plugin version matches release tag | |
run: | | |
# Read the version from the Gradle properties | |
version=$(./gradlew -q --no-daemon properties -Pversion | grep version: | awk '{print $2}') | |
# Check that the version matches the tag | |
if [[ "$version" != "${GITHUB_REF#refs/tags/release}" ]]; then | |
echo "Version $version does not match tag ${GITHUB_REF#refs/tags/}" | |
exit 1 | |
fi | |
- name: Generate release notes | |
run: | | |
./gradlew -q getChangelog --no-header --project-version="${GITHUB_REF#refs/tags/release}" > release-notes.txt | |
- name: Build with Gradle | |
run: | | |
./gradlew verifyPlugin | |
- name: Upload to releasex | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body_path: release-notes.txt | |
files: build/libs/SmartTomcat-*.jar | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |