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 054c807 commit 7f983f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 29 deletions.
23 changes: 10 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-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 @@ -62,36 +61,34 @@ jobs:
optional: true

uses: evanchooly/workflows/.github/workflows/build.yml@master
secrets:
GH_TOKEN: ${{ secrets.TESTING_GH_OAUTH }}
with:
java: ${{ matrix.java }}
reuseBuild: true
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
with:
workflow: Docs
repo: MorphiaOrg/morphia-docs
token: ${{ secrets.PUSH_TOKEN }}
token: ${{ secrets.GH_PUSH_TOKEN }}
ref: refs/heads/master
16 changes: 0 additions & 16 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 7f983f0

Please sign in to comment.