Skip to content

retter opp i url til repo #14

retter opp i url til repo

retter opp i url til repo #14

Workflow file for this run

name: build & publish fabrikk
on:
push:
branches:
- main
paths:
- 'fabrikk/**'
- 'build.gradle.kts'
- 'settings.gradle.kts'
- '.github/workflows/fabrikk.yml'
env:
ORG_GRADLE_PROJECT_githubPassword: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21.x'
cache: 'gradle'
- name: gradle
run: ./gradlew :fabrikk:build
- name: Genererer versjon
run: |
TIME=$(TZ="Europe/Oslo" date +%Y.%m.%d-%H.%M)
COMMIT=$(git rev-parse --short=8 HEAD)
VERSION=$TIME-$COMMIT
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: upload artifacts
run: ./gradlew :fabrikk:publish -Pversion="$(echo $VERSION)"
env:
GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }}