-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from adobe/staging
Merge `staging` into `main` for Assurance 3.0.0 release
- Loading branch information
Showing
166 changed files
with
10,005 additions
and
8,671 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
template: | | ||
## What’s Changed | ||
$CHANGES |
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 |
---|---|---|
@@ -1,34 +1,69 @@ | ||
name: Publish package to the Maven Central Repository | ||
name: Publish Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
## Manual Workflow trigger | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'tag/version' | ||
required: true | ||
|
||
action_tag: | ||
description: 'Create tag? ("no" to skip)' | ||
required: true | ||
default: 'yes' | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Java | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
java-version: 17 | ||
|
||
- name: Cache Gradle packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.gradle/caches | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} | ||
restore-keys: ${{ runner.os }}-gradle | ||
|
||
- name: Verify version | ||
run: | | ||
set -eo pipefail | ||
echo Release version: ${{ github.event.inputs.tag }} | ||
(./scripts/version.sh -v ${{ github.event.inputs.tag }}) | ||
- name: Import GPG key | ||
env: | ||
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }} | ||
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }} | ||
run: | | ||
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import --no-tty --batch --yes | ||
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust --no-tty --batch --yes | ||
- name: Publish to maven central repository | ||
- name: Publish to Maven Central Repository | ||
run: make ci-publish-main | ||
env: | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }} | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: release-drafter/release-drafter@v5 | ||
if: ${{ github.event.inputs.action_tag == 'yes' }} | ||
with: | ||
name: v${{ github.event.inputs.tag }} | ||
tag: v${{ github.event.inputs.tag }} | ||
version: v${{ github.event.inputs.tag }} | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Update Extension Version | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'New version to use for the Assurance extension. Example: 3.0.0' | ||
required: true | ||
|
||
|
||
core-dependency: | ||
description: '[Optional] Update Core dependency in pom.xml. Example: 3.0.0' | ||
required: false | ||
|
||
jobs: | ||
update-version: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update Versions | ||
run: (./scripts/version.sh -u -v ${{ github.event.inputs.version }} -d "Core ${{ github.event.inputs.core-dependency }}") | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ github.token }} | ||
commit-message: Updating version to ${{ github.event.inputs.version }}. | ||
branch: version-${{ github.event.inputs.version }}-update | ||
delete-branch: true | ||
title: Updating version to ${{ github.event.inputs.version }} | ||
body: Updating version to ${{ github.event.inputs.version }} |
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
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
Oops, something went wrong.