Skip to content

Merge pull request #540 from navikt/dependabot/github_actions/actions… #498

Merge pull request #540 from navikt/dependabot/github_actions/actions…

Merge pull request #540 from navikt/dependabot/github_actions/actions… #498

Workflow file for this run

name: Build master
on:
push:
branches:
- master
permissions:
contents: read
jobs:
build:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout latest code
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'zulu'
cache: 'gradle'
- name: Generate and submit dependency graphs
uses: gradle/gradle-build-action@v2
with:
dependency-graph: generate-and-submit
- name: Build with Gradle
run: ./gradlew build
release-notes:
permissions:
contents: write # for release-drafter/release-drafter to create a github release
pull-requests: write # for release-drafter/release-drafter to add label to PRs
runs-on: ubuntu-latest
steps:
- name: Release Drafter
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}