Add option for lowerCase when normalizing #459
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: CI | |
on: | |
push: | |
branches: [ master ] | |
tags: '*' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'adopt' | |
java-version: 11 | |
cache: 'maven' | |
- name: Build with Maven | |
run: mvn package jacoco:report | |
- name: Upload Codecov report | |
uses: codecov/codecov-action@v4 | |
with: | |
directory: . | |
- name: Upload built JAR | |
uses: actions/upload-artifact@v4 | |
with: | |
name: jmail-jar | |
path: target/jmail-*.jar | |
create-release: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') | |
needs: [ build ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download JAR | |
uses: actions/download-artifact@v4 | |
with: | |
name: jmail-jar | |
path: target | |
- name: Set tag number | |
id: tag | |
run: echo "tag_name=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
- name: Create release notes file | |
run: sed '/^## ${{ steps.tag.outputs.tag_name }}/,/^---/!d;//d' CHANGELOG.md > release_body.md | |
- name: Create GitHub Release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: ${{ github.ref }} | |
body_path: release_body.md | |
- name: Upload JAR to Release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: target/jmail-${{ steps.tag.outputs.tag_name }}.jar | |
asset_name: jmail-${{ steps.tag.outputs.tag_name }}.jar | |
asset_content_type: application/java-archive |