Oppgradere til PDF-box 3.0.0 #160
Workflow file for this run
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: 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 }} |