forked from real-logic/artio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Build] publish OSS artifacts through GitHub workflow
- Loading branch information
1 parent
698176a
commit 041a639
Showing
4 changed files
with
108 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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: | ||
uses: ./.github/workflows/codeql.yml | ||
|
||
release: | ||
name: Release java artifacts | ||
permissions: | ||
contents: write | ||
packages: write | ||
needs: [ ci, 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: 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 to Open Source | ||
run: ./gradlew publishAllPublicationsToOssRepository | ||
env: | ||
ORG_GRADLE_PROJECT_repoUsername: ${{ secrets.ossrhUsername }} | ||
ORG_GRADLE_PROJECT_repoPassword: ${{ secrets.ossrhPassword }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.signingKey }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.signingPassword }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters