Skip to content

fix syntax

fix syntax #4

Workflow file for this run

name: "Publish to Maven Central"
on:
push:
tags:
- "*"
branches:
- "ci/publish-workflow"
jobs:
publish-to-maven-central:
steps:

Check failure on line 12 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to Maven Central

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 12, Col: 5): Required property is missing: runs-on
- 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: publish-to-central
name: Publish to Central Repository
env:
MAVEN_USERNAME: ${{ vars.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
clean deploy