Bump com.googlecode.maven-download-plugin:download-maven-plugin (#42) #41
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: 02 release | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- '**.md' | |
- '.github/workflows' | |
workflow_dispatch: | |
jobs: | |
release: | |
permissions: | |
contents: write | |
id-token: write | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 #v4.0.0 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
cache: 'maven' | |
server-id: github | |
settings-path: ${{ github.workspace }} | |
- name: Create settings.xml | |
uses: whelk-io/maven-settings-xml-action@9dc09b23833fa9aa7f27b63db287951856f3433d #v22 | |
with: | |
repositories: '[{ "id": "github", "name": "github", "url": "https://maven.pkg.github.com/navikt/xerces-xmlschema-1.1", "releases": { "enabled": "true" }, "snapshots": { "enabled": "false" } }]' | |
servers: '[{ "id": "github", "username": "${{ github.actor }}", "password": "${{ secrets.GITHUB_TOKEN }}" }]' | |
- name: Configure git user | |
run: | | |
git config user.name "GitHub Actions Bot (${{ github.actor }})" | |
git config user.email "actions@github.com" | |
- name: Publish | |
run: | | |
mvn --batch-mode deploy -DskipTests | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: report to slack | |
if: always() | |
uses: navikt/eresept-actions/slack-notify@main | |
with: | |
status: "${{ job.status }}" | |
username: "release ${{ env.appver }}" | |
icon: ":github:" | |
title-success: "Successfully released _*${{ github.event.repository.name }}*_" | |
title-failure: "Release of _*${{ github.event.repository.name }}*_ failed" | |
title-cancelled: "Release of _*${{ github.event.repository.name }}*_ was cancelled" | |
webhook: ${{ secrets.SLACK_WEBHOOK }} |