Forespørsler #3
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: Build and publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build and push | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
repository: navikt/hag-lps-api-client | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: List repository contents | |
run: ls -la | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 21 | |
distribution: temurin | |
cache: gradle | |
- name: Verify Gradle wrapper checksum | |
uses: gradle/wrapper-validation-action@v3 | |
- name: Build with Gradle | |
run: ./gradlew build | |
env: | |
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }} |