Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

release

release #19

Workflow file for this run

name: release
on:
workflow_dispatch:
create:
tags:
- '*'
jobs:
release:
if: (github.event_name != 'create' || github.event.ref_type == 'tag')
runs-on: ubuntu-latest
steps:
- name: 'Set up JDK'
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: 'Prepare git'
run: git config --global core.autocrlf false
- name: 'Prepare branch name'
if: (github.event_name == 'create' && github.event.ref_type == 'tag')
run: >
echo "refName=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: 'Checkout jOOQ'
uses: actions/checkout@v3
with:
repository: jOOQ/jOOQ
ref: stable-sql2cypher
path: jOOQ
- name: 'Install jOOQ Snapshot'
working-directory: jOOQ
run: mvn --no-transfer-progress -DskipTests -pl jOOQ -pl jOOQ-meta -am install
- name: 'Checkout Cypher-DSL'
uses: actions/checkout@v3
with:
repository: neo4j-contrib/cypher-dsl
path: cypher-dsl
- name: 'Install Cypher-DSL Snapshot'
working-directory: cypher-dsl
run: ./mvnw -Dfast install -am -pl neo4j-cypher-dsl -pl neo4j-cypher-dsl-build/processor -pl neo4j-cypher-dsl-parser -Drevision=2023.1.0 -Dchangelist=-SNAPSHOT
- name: 'Checkout relevant branch'
uses: actions/checkout@v3
with:
path: sql2cypher
ref: ${{ env.refName }}
- name: 'Create jar'
working-directory: sql2cypher
run: ./mvnw --no-transfer-progress -Dfast clean package
- name: 'Setup all required JDKs'
working-directory: sql2cypher
run: ./mvnw --no-transfer-progress jdks:setup-disco
- name: 'Assemble jlink images'
working-directory: sql2cypher
run: ./mvnw --no-transfer-progress jreleaser:assemble
- name: 'Create release'
working-directory: sql2cypher
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./mvnw --no-transfer-progress jreleaser:full-release