Skip to content

Bump com.googlecode.maven-download-plugin:download-maven-plugin (#65) #62

Bump com.googlecode.maven-download-plugin:download-maven-plugin (#65)

Bump com.googlecode.maven-download-plugin:download-maven-plugin (#65) #62

Workflow file for this run

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@d632683dd7b4114ad314bca15554477dd762a938 #v4.2.0
with:
fetch-depth: 0
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 #v4.4.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"
message-success: "Successfully released _*${{ github.event.repository.name }}*_"
webhook: ${{ secrets.SLACK_WEBHOOK }}