Merge pull request #142 from geostyler/renovate/eslint-monorepo #35
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources 🔰 | |
uses: actions/checkout@v3 | |
- name: Set up Java 📐 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Build artifacts 🏗️ | |
run: mvn clean package -B | |
- name: Create maven settings.xml with credentials | |
uses: whelk-io/maven-settings-xml-action@v2 | |
with: | |
servers: | | |
[ | |
{ "id": "nexus.terrestris.de-releases", "username": "${{ secrets.NEXUS_USER }}", "password": "${{ secrets.NEXUS_PASSWORD }}" } | |
] | |
- name: Semantic release | |
id: semantic | |
uses: cycjimmy/semantic-release-action@v3 | |
with: | |
semantic_version: 19 | |
extra_plugins: | | |
@semantic-release/changelog@6 | |
@terrestris/maven-semantic-release@2 | |
@semantic-release/git@10 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} |