Skip to content

Initial commit

Initial commit #2

Workflow file for this run

name: Deploy to Maven Central

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

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
env:
JAVA_VERSION: '17'
MAVEN_VERSION: '3.9.11'
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
needs: update-version
steps:
- name: Download artifact
uses: actions/download-artifact@v5
with:
name: root-new-version
- name: Build
uses: ./.github/actions/build
with:
java-version: ${{ env.JAVA_VERSION }}
maven-version: ${{ env.MAVEN_VERSION }}
- name: Upload Changed Artifacts
uses: actions/upload-artifact@v4
with:
name: root-build
include-hidden-files: true
path: .
retention-days: 1
deploy:
name: Deploy to Maven Central
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download artifact
uses: actions/download-artifact@v5
with:
name: root-build
- name: Deploy
uses: ./.github/actions/release
with:
user: ${{ secrets.CENTRAL_REPOSITORY_USER }}
password: ${{ secrets.CENTRAL_REPOSITORY_PASS }}
pgp-pub-key: ${{ secrets.PGP_PUBKEY_ID }}
pgp-private-key: ${{ secrets.PGP_PRIVATE_KEY }}
pgp-passphrase: ${{ secrets.PGP_PASSPHRASE }}
maven-version: ${{ env.MAVEN_VERSION }}