md5, asc #22
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
name: Create Release on github | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version number of the release (Format 0.0.0)' | ||
required: true | ||
type: string | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
- uses: actions/checkout@v4 | ||
- id: install-secret-key | ||
name: Install gpg secret key | ||
run: | | ||
# Install gpg secret key | ||
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import | ||
# Verify gpg secret key | ||
gpg --list-secret-keys --keyid-format LONG | ||
- id: build-artifact | ||
name: Build release artefacts | ||
env: | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} | ||
run: | | ||
mvn \ | ||
--no-transfer-progress \ | ||
--batch-mode \ | ||
# -DskipTests \ | ||
clean verify | ||
- name: Create Release ${{ inputs.version }} | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
# name: v${{ steps.get_version.outputs.VERSION }} | ||
name: JMediator ${{ inputs.version }} | ||
# tag: ${{ github.head_ref }} | ||
tag: ${{ inputs.version }} | ||
commit: "main" | ||
prerelease: false | ||
# makeLatest: true | ||
# bodyFile: "distribution/release-notes/${{ steps.get_version.outputs.VERSION }}.md" | ||
# artifacts: "target/jmediator-${{ steps.get_version.outputs.VERSION }}.zip,distribution/target/jmediator-${{ steps.get_version.outputs.VERSION }}.zip.asc" | ||
artifacts: "target/jmediator-${{ inputs.version }}.jar,target/**.asc,target/**.md5" | ||
token: ${{ secrets.GITHUB_TOKEN }} |