-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a9f6b4
commit 0702de7
Showing
23 changed files
with
525 additions
and
106 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 was deleted.
Oops, something went wrong.
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,51 @@ | ||
name: Create github release | ||
description: Creates a github release | ||
|
||
inputs: | ||
artifact-version: | ||
description: "" | ||
required: true | ||
github-token: | ||
description: "" | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get previous tag | ||
shell: bash | ||
id: get-prev-tag | ||
run: | | ||
# Fetch all tags | ||
git fetch --tags | ||
echo "previous-tag=$(git tag --sort=-creatordate | sed -n '1p')" >> $GITHUB_OUTPUT | ||
# Extract commit messages between previous tag and the current tag. | ||
- name: Get release notes | ||
shell: bash | ||
id: release-notes | ||
run: | | ||
notes=$(git log "${{ steps.get-previous-tag.outputs.previous-tag }}..HEAD" --pretty=format:"%s" --no-merges) | ||
# GitHub Actions requires that multiline output is escaped: | ||
notes="${notes//'%'/'%25'}" | ||
notes="${notes//$'\n'/'%0A'}" | ||
notes="${notes//$'\r'/'%0D'}" | ||
echo "notes=$notes" >> $GITHUB_OUTPUT | ||
- name: Debug | ||
shell: bash | ||
run: | | ||
echo "artifact-version: ${{ inputs.artifact-version }}" | ||
echo "body: ${{ steps.release-notes.outputs.notes }}" | ||
- uses: rickstaa/action-create-tag@v1 | ||
id: "tag_create" | ||
with: | ||
tag: ${{ inputs.artifact-version }} | ||
tag_exists_error: false | ||
message: "Latest release" |
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,66 @@ | ||
name: Publish artifacts to Sonatype | ||
description: "Publishes artifacts to Sonatype" | ||
|
||
inputs: | ||
jfrog-releases-repo-name: | ||
description: "" | ||
required: false | ||
default: clients-maven-dev-local | ||
jfrog-snapshots-repo-name: | ||
description: "" | ||
required: false | ||
default: clients-maven-dev-local | ||
jfrog-platform-url: | ||
description: "" | ||
required: false | ||
default: https://aerospike.jfrog.io | ||
oidc-provider: | ||
description: "" | ||
required: true | ||
oidc-audience: | ||
description: "" | ||
required: true | ||
artifact-name: | ||
description: "" | ||
required: true | ||
artifact-version: | ||
description: "" | ||
required: true | ||
staging-folder: | ||
description: "" | ||
required: false | ||
default: staging | ||
target-repository: | ||
description: "" | ||
required: false | ||
default: clients-maven-stage-local | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up JFrog credentials | ||
id: setup-jfrog-cli | ||
uses: jfrog/setup-jfrog-cli@v4 | ||
env: | ||
JF_URL: ${{ inputs.jfrog-platform-url }} | ||
with: | ||
version: 2.72.2 | ||
oidc-provider-name: ${{ inputs.oidc-provider }} | ||
oidc-audience: ${{ inputs.oidc-audience }} | ||
|
||
- name: Create staging folder | ||
shell: bash | ||
run: | | ||
mkdir -p ${{ inputs.staging-folder }} | ||
- name: Download artifacts from JFrog | ||
shell: bash | ||
working-directory: ${{ inputs.staging-folder }} | ||
run: | | ||
jf rt dl "${{ inputs.target-repository }}/com/aerospike/${{ inputs.artifact-name }}/${{ inputs.artifact-version }}/*" . | ||
- name: Debug list downloaded content | ||
shell: bash | ||
working-directory: ${{ inputs.staging-folder }} | ||
run: | | ||
ls -la |
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
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
Oops, something went wrong.