Bygg og deploy rule-dsl #42
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 rule-dsl | |
on: workflow_dispatch | |
jobs: | |
bygg: | |
permissions: | |
actions: read | |
checks: read | |
contents: read | |
deployments: write | |
packages: write | |
pull-requests: write | |
name: Bygg og deploy av rule-dsl | |
runs-on: ubuntu-latest | |
steps: | |
- name: Kanseller tidligere kjøringer | |
uses: styfle/cancel-workflow-action@0.12.1 | |
with: | |
access_token: ${{ github.token }} | |
- name: Sjekk ut kode | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Cache Maven pakker | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2 | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Deploy rule-dsl til github | |
run: mvn -B --settings maven-settings.xml deploy -Dmaven.wagon.http.pool=false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |