This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
Merge pull request #109 from navikt/dependabot/maven/kotlin.coroutine… #426
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: Bygg og deploy | |
on: | |
push: | |
branches: | |
- main # Push events on master branch | |
jobs: | |
release-notes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Release Drafter | |
uses: release-drafter/release-drafter@v5 | |
id: drafter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'maven' | |
- name: Hent tag | |
run: echo "TAG=$(date +%Y.%m.%d.%H%M%S)-$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV | |
- name: Bygg og test | |
shell: bash | |
run: | | |
echo "Building $(echo $GITHUB_SHA | cut -c1-7)" | |
mvn deploy --batch-mode --settings ./.m2/settings.xml | |
echo "Bygget og testet" | |
env: | |
GITHUB_USERNAME: x-access-token | |
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |