Skip to content

Legger til erungufor fra bussen #79

Legger til erungufor fra bussen

Legger til erungufor fra bussen #79

Workflow file for this run

name: Release (Github Package Registry)
on:
push:
branches:
- 'main'
jobs:
revision:
runs-on: ubuntu-latest
permissions:
contents: "read"
outputs:
revision: ${{ steps.revision.outputs.revision }}
steps:
- uses: actions/checkout@v4
- name: Calculate revision
id: revision
shell: bash
run: |
TIME=$(TZ="Europe/Oslo" date +%Y.%m.%d-%H.%M)
COMMIT=$(git rev-parse --short=12 HEAD)
echo "revision=$TIME-$COMMIT" >> $GITHUB_OUTPUT
release:
if: false
needs: revision
runs-on: ubuntu-latest
permissions:
contents: "read"
packages: "write"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REVISION: ${{ needs.revision.outputs.revision }}
shell: bash
run: |
mvn -B -Drevision="${REVISION}" source:jar deploy
release-javax:
needs: revision
runs-on: ubuntu-latest
permissions:
contents: "read"
packages: "write"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8'
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REVISION: ${{ needs.revision.outputs.revision }}
shell: bash
run: |
mvn -Pjavax -B -Drevision="${REVISION}" source:jar deploy