Skip to content

Release

Release #43

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
tags:
- '*.*.*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
env:
GRADLE_OPTS: '-Dorg.gradle.daemon=false -Dorg.gradle.java.installations.auto-detect=false -Dorg.gradle.warning.mode=fail'
jobs:
ci:
uses: ./.github/workflows/ci.yml
# permissions:
# contents: read
ci-low-cadence:
uses: ./.github/workflows/ci-low-cadence.yml
# permissions:
# contents: read
codeql:

Check failure on line 27 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 27, Col: 3): Error calling workflow 'marc-adaptive/forked-agrona/.github/workflows/codeql.yml@01194c8737ee704d2bebd2df0150cbd5aeec4a95'. The nested job 'analyze' is requesting 'actions: read, security-events: write', but is only allowed 'actions: none, security-events: none'.
uses: ./.github/workflows/codeql.yml
# permissions:
# actions: read
# contents: read
# security-events: write
release:
name: Release java artifacts
permissions:
contents: write
packages: write
needs: [ ci, ci-low-cadence, codeql ]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: true
- name: Setup java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 8
- name: Setup BUILD_JAVA_HOME & BUILD_JAVA_VERSION
run: |
java -Xinternalversion
echo "BUILD_JAVA_HOME=${JAVA_HOME}" >> $GITHUB_ENV
echo "BUILD_JAVA_VERSION=8" >> $GITHUB_ENV
- name: Publish a release
run: ./gradlew publish
env:
SIGNING_GPG_SECRET_KEY: ${{ secrets.GPG_RSA_SIGN_KEY }}
SIGNING_GPG_PASSWORD: ${{ secrets.GPG_RSA_SIGN_KEYPASS }}
OSSRH_USERNAME: ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}