Skip to content

Commit

Permalink
test: build as jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev committed Aug 2, 2024
1 parent 949a6f8 commit 2ea8414
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: ['**/**']
jobs:
prepare:
build:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -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

0 comments on commit 2ea8414

Please sign in to comment.