Skip to content

Oppgradere til PDF-box 3.0.0 #159

Oppgradere til PDF-box 3.0.0

Oppgradere til PDF-box 3.0.0 #159

Workflow file for this run

name: Publish artifacts (snapshot)
on:
push:
branches:
- '*'
- '*/*' # in case a branch uses this naming pattern
- '!main'
jobs:
build_and_release:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Set release tag
run: |
TAG_NAME="1.$(date "+%Y%m%d.%H%M")-$(echo $GITHUB_SHA | cut -c1-7)"
echo "RELEASE_TAG=$TAG_NAME" >> $GITHUB_ENV
- name: Gradle wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Run lint
run: ./gradlew ktlintCheck
- name: run tests, build and publish
run: ./gradlew -Pversion="$(echo $RELEASE_TAG)-SNAPSHOT" build publish
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}