Skip to content

Removed redundant bits #2

Removed redundant bits

Removed redundant bits #2

name: "Build - Snapshot"
on:
push:
branches-ignore:
- main
tags-ignore:
- '*'
pull_request:
branches:
- main
jobs:
snapshot_build:

Check failure on line 13 in .github/workflows/snapshot-build.yaml

View workflow run for this annotation

GitHub Actions / Build - Snapshot

Invalid workflow file

The workflow is not valid. .github/workflows/snapshot-build.yaml (Line: 13, Col: 3): The workflow must contain at least one job with no dependencies.
name: Snapshot build and publish
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
needs: unit_tests
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install gpg secret key
run: cat <(echo -e "${{ secrets.GPG_SECRET_KEY }}") | gpg --batch --import
- name: Set up Maven Central Repository
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: 'maven'
- name: Cache local Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- id: publish-to-central-and-docker
name: Publish to Central Repository and Docker
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
run: |
mvn \
--no-transfer-progress \
--batch-mode \
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \
clean deploy