Merge pull request #116 from navikt/feature/valider-inputdatoer #295
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: maven deploy | |
on: | |
push: | |
branches: | |
- '**' | |
env: | |
GITHUB_USERNAME: x-access-token | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
permissions: | |
contents: "write" | |
id-token: "write" | |
packages: "write" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '21' | |
distribution: 'temurin' | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- uses: navikt/bidrag-maven/verify-dependencies@v7 | |
- run: mvn -B -e --settings .m2/maven-settings.xml install | |
- uses: navikt/bidrag-release/prepare-mvn-pkg@v3 | |
id: prepare | |
if: github.ref == 'refs/heads/main' | |
- uses: navikt/bidrag-release/verify-auto-release@v3 | |
id: verify | |
if: github.ref == 'refs/heads/main' | |
with: | |
changelog_file: README.md | |
release_version: ${{ steps.prepare.outputs.release_version }} | |
- uses: navikt/bidrag-release/mvn-github-pkg@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
is_release_candidate: ${{ steps.verify.outputs.is_release_candidate }} | |
new_snapshot_version: ${{ steps.prepare.outputs.new_snapshot_version }} | |
release_version: ${{ steps.prepare.outputs.release_version }} | |
is_commit_tag: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: navikt/bidrag-release/tag-n-commit-release@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
commit_message: Bumped to new SNAPSHOT version after release of version ${{ steps.prepare.outputs.release_version }} | |
tag_message: Released new version - ${{ steps.prepare.outputs.release_version }} | |
pattern: pom.xml | |
is_release_candidate: ${{ steps.verify.outputs.is_release_candidate }} | |
tag: ${{ steps.prepare.outputs.release_version }} | |
new_snapshot_version: ${{ steps.prepare.outputs.new_snapshot_version }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |