Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Aug 23, 2023
1 parent 208d920 commit 90924aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches-ignore:
- 'dependabot/**'
tags-ignore:
tags:
- r[0-9]*
workflow_dispatch:

Expand All @@ -16,7 +16,6 @@ jobs:
with:
java: 20
saveBuild: true
maven-flags: "-Dmongodb=6"

Test:
needs:
Expand Down Expand Up @@ -70,23 +69,23 @@ jobs:
archive-name: "${{matrix.mongo}}-${{matrix.driver}}-${{matrix.java}}-${{github.run_id}}"
maven-flags: "-e -Dmongodb=${{ matrix.mongo }} -Ddriver.version=${{ matrix.driver }}"

Snapshots:
if: github.ref_type == 'branch'
Release:
if: github.ref_type == 'branch' || github.ref_type == 'tag'
needs:
- Test
uses: evanchooly/workflows/.github/workflows/release.yml@master
secrets:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GH_TOKEN: ${{ secrets.GH_OAUTH }}
GH_PUSH_TOKEN : ${{ secrets.GH_PUSH_TOKEN }}
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
GPG_PRIVATE_KEY : ${{ secrets.GPG_PRIVATE_KEY }}
SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}

Docs:
name: Update Documentation
runs-on: ubuntu-latest
needs:
- Snapshots
- Release
steps:
- name: Invoke antora build
uses: benc-uk/workflow-dispatch@v121
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 90924aa

Please sign in to comment.