diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c3282f..c9f149c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,7 @@ on: push: branches: ['**/**'] jobs: - prepare: + build: runs-on: ubuntu-latest permissions: contents: read @@ -76,27 +76,19 @@ jobs: run: echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT maven-central: runs-on: ubuntu-latest - needs: release - permissions: - contents: read - packages: write + needs: build env: GITHUB_TOKEN: ${{ github.token }} - MARKDOWN2HTML_MAVEN_PLUGIN_FAIL_ON_ERROR: true steps: - name: Publish to Maven Central # if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }} - run: mvn --batch-mode package # deploy -P gpg-sign -P nexus-staging + run: mvn --batch-mode -DskipTests=true package # deploy -P gpg-sign -P nexus-staging github-packages: runs-on: ubuntu-latest - needs: release - permissions: - contents: read - packages: write + needs: build env: GITHUB_TOKEN: ${{ github.token }} - MARKDOWN2HTML_MAVEN_PLUGIN_FAIL_ON_ERROR: true steps: - name: Publish to GitHub Packages # if: ${{ !endsWith(steps.artefact_version.outputs.version, '-SNAPSHOT') && github.ref == 'refs/heads/main' }} - run: mvn --batch-mode package # deploy -P gpg-sign -P deploy-github-packages + run: mvn --batch-mode -DskipTests=true package # deploy -P gpg-sign -P deploy-github-packages