Skip to content

fix2 deploy

fix2 deploy #20

Workflow file for this run

name: Deploy Snapshot
on:
workflow_dispatch:
branches:
- 'master'
-
jobs:
deploy:
name: Deploy Snapshot
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 'main'
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
server-id: ossrh
server-username: ${{ secrets.OSSRH_USERNAME }}
server-password: ${{ secrets.OSSRH_TOKEN }}
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
gpg-passphrase: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
cache: 'maven

Check failure on line 30 in .github/workflows/maven_deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/maven_deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
- name: Publish to Maven Central repository
env:
SIGN_KEY_PASS: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
run: |
mvn -U -B clean deploy -P release