-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ on: | |
pull_request_target: | ||
types: [ opened,closed,synchronize ] | ||
|
||
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings | ||
permissions: | ||
actions: write | ||
contents: write | ||
|
@@ -17,14 +16,10 @@ jobs: | |
CLAAssistant: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "CLA Assistant" | ||
# https://github.com/contributor-assistant/github-action | ||
- name: "CLA Assistant Lite" | ||
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' | ||
uses: contributor-assistant/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# the below token should have repo scope and must be manually added by you in the repository's secret | ||
# This token is required only if you have configured to store the signatures in a remote repository/organization | ||
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }} | ||
with: | ||
path-to-signatures: 'cla/version1/signatures/cla.json' | ||
path-to-document: 'https://github.com/cowwoc/pouch/blob/master/cla/version1/cla.md' # e.g. a CLA or a DCO document | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,13 +7,18 @@ on: | |
concurrency: | ||
group: "${{ github.workflow }}-${{ github.ref }}" | ||
cancel-in-progress: true | ||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
env: | ||
STAGING_HOST: "oss.sonatype.org" | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | ||
jobs: | ||
open-release: | ||
name: Open release | ||
runs-on: ubuntu-latest | ||
outputs: | ||
INITIAL_MASTER_POSITION: ${{ steps.create-tag.outputs.INITIAL_MASTER_POSITION }} | ||
|
@@ -106,9 +111,15 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.open-release.outputs.TAG }} | ||
token: ${{ secrets.WORKFLOW_TOKEN }} | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
|
||
- name: Configure Git User | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Gili Tzabari" | ||
- name: Install Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: | | ||
|
@@ -141,7 +152,7 @@ jobs: | |
# Must quote exclamation mark on bash: https://stackoverflow.com/a/27177197/14731 | ||
- name: Generate Javadoc | ||
run: | | ||
./mvnw --batch-mode -V -e javadoc:aggregate -pl '!dropwizard,!jersey' | ||
./mvnw --batch-mode -V -e verify javadoc:aggregate -pl '!dropwizard,!jersey' | ||
mkdir --parents "${{ needs.open-release.outputs.VERSION }}/docs" | ||
mv target/reports/apidocs "${{ needs.open-release.outputs.VERSION }}/docs/api" | ||
|
@@ -154,13 +165,13 @@ jobs: | |
git push | ||
close-release: | ||
name: Close release | ||
needs: [ open-release, deploy ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ needs.open-release.outputs.TAG }} | ||
token: ${{ secrets.WORKFLOW_TOKEN }} | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
|
@@ -189,16 +200,17 @@ jobs: | |
# Cleanup on failure: https://stackoverflow.com/a/74562058/14731 | ||
on-failure: | ||
needs: [ open-release, deploy, document, close-release ] | ||
name: On failure | ||
needs: [ open-release, deploy, close-release ] | ||
runs-on: ubuntu-latest | ||
if: ${{ failure() || cancelled() }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
token: ${{ secrets.WORKFLOW_TOKEN }} | ||
fetch-depth: 0 | ||
- uses: actions/setup-java@v4 | ||
- name: Install Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: | | ||
|