Skip to content

md5, asc

md5, asc #22

Workflow file for this run

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

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 26
- 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 }}