Skip to content

Release

Release #18

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
codeql:

Check failure on line 20 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: 20, Col: 3): Error calling workflow 'marc-adaptive/forked-simple-binary-encoding/.github/workflows/codeql.yml@6980f382be43c2c6d16e302767283af000ec8569'. The nested job 'java-analyze' is requesting 'actions: read, security-events: write', but is only allowed 'actions: none, security-events: none'. .github/workflows/release.yml (Line: 20, Col: 3): Error calling workflow 'marc-adaptive/forked-simple-binary-encoding/.github/workflows/codeql.yml@6980f382be43c2c6d16e302767283af000ec8569'. The nested job 'csharp-analyze' is requesting 'actions: read, security-events: write', but is only allowed 'actions: none, security-events: none'.
uses: ./.github/workflows/codeql.yml
slow:
uses: ./.github/workflows/slow.yml
release:
name: Release java artifacts
permissions:
contents: write
packages: write
needs: [ ci , codeql, slow]
runs-on: self-hosted
steps:
- name: checkout
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: Release ${{ 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 with Gradle
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.ossrhUsername }}
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.ossrhPassword }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.signingPassword }}