Remove parent.
This commit is contained in:
parent
3efda9d452
commit
41589b6c8c
8 changed files with 261 additions and 244 deletions
24
.github/workflows/lint.yaml
vendored
Normal file
24
.github/workflows/lint.yaml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Lint
|
||||
|
||||
"on":
|
||||
workflow_dispatch: {}
|
||||
push: {}
|
||||
|
||||
jobs:
|
||||
|
||||
yaml:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ibiqlik/action-yamllint@v3
|
||||
with:
|
||||
format: colored
|
||||
strict: true
|
||||
|
||||
markdown:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker://avtodev/markdown-lint:v1
|
||||
with:
|
||||
args: /github/workspace
|
|
@ -25,7 +25,7 @@ jobs:
|
|||
gpg-passphrase: GPG_PASSPHRASE
|
||||
- run: mvn -B dependency:go-offline -q
|
||||
- run: mvn -B release:prepare
|
||||
- run: mvn -B release:perform -DreleaseProfiles=oss-release
|
||||
- run: mvn -B release:perform
|
||||
env:
|
||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
|
@ -5,29 +5,8 @@ name: Snapshot
|
|||
push: {}
|
||||
|
||||
jobs:
|
||||
|
||||
lint-yaml:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ibiqlik/action-yamllint@v3
|
||||
with:
|
||||
format: colored
|
||||
strict: true
|
||||
|
||||
lint-markdown:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: docker://avtodev/markdown-lint:v1
|
||||
with:
|
||||
args: /github/workspace
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- lint-markdown
|
||||
- lint-yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-java@v2
|
||||
|
@ -40,9 +19,9 @@ jobs:
|
|||
server-password: SERVER_PASSWORD
|
||||
- run: mvn -B dependency:go-offline -q
|
||||
- run: mvn -B verify
|
||||
if: github.ref != 'refs/heads/main' && github.ref != 'refs/heads/3.x'
|
||||
- run: mvn -B deploy -Poss
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/3.x'
|
||||
if: github.ref != 'refs/heads/main'
|
||||
- run: mvn -B deploy
|
||||
if: github.ref == 'refs/heads/main'
|
||||
env:
|
||||
SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
||||
SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
Loading…
Add table
Add a link
Reference in a new issue