ci: add huawei technology repo in the prepare list #2
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
name: "Publish All Components" | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
required: true | |
description: "The version that should be released." | |
branch: | |
type: string | |
required: false | |
default: "main" | |
description: "The branch which to publish. must exist in all repos!" | |
review-dependencies: | |
type: boolean | |
required: false | |
default: false | |
description: "If true, it will trigger IPLab review for restricted dependencies" | |
workflow_call: | |
inputs: | |
version: | |
type: string | |
required: true | |
description: "The version that should be released. " | |
branch: | |
type: string | |
required: false | |
default: "main" | |
description: "The branch which to publish. must exist in all repos!" | |
review-dependencies: | |
type: boolean | |
required: false | |
default: false | |
description: "If true, it will trigger IPLab review for restricted dependencies" | |
# these environment variables will be read by release-setup.sh | |
env: | |
VERSION: ${{ inputs.version }} | |
SOURCE_BRANCH: ${{ inputs.branch }} | |
jobs: | |
Publish-All-Components: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: eclipse-edc/.github/.github/actions/setup-build@main | |
- name: release setup | |
run: | | |
echo "Launch release setup on branch $SOURCE_BRANCH and version $VERSION" | |
./release-setup.sh | |
- name: request review for restricted DEPENDENCIES | |
if: ${{ inputs.review-dependencies }} | |
uses: eclipse-edc/.github/.github/actions/request-dependencies-review@main | |
with: | |
gitlab-token: ${{ secrets.GITLAB_API_TOKEN }} | |
- name: "Display project structure" | |
run: ./gradlew projects | |
- uses: eclipse-edc/.github/.github/actions/import-gpg-key@main | |
name: "Import GPG Key" | |
with: | |
gpg-private-key: ${{ secrets.ORG_GPG_PRIVATE_KEY }} | |
- name: "Publish all-in-one project" | |
env: | |
OSSRH_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }} | |
OSSRH_USER: ${{ secrets.ORG_OSSRH_USERNAME }} | |
run: |- | |
cmd="" | |
if [[ $VERSION != *-SNAPSHOT ]] | |
then | |
cmd="closeAndReleaseSonatypeStagingRepository"; | |
fi | |
echo "Publishing Version $VERSION to Sonatype" | |
./gradlew publishToSonatype ${cmd} --no-parallel -Pversion=$VERSION -Psigning.gnupg.executable=gpg -Psigning.gnupg.passphrase="${{ secrets.ORG_GPG_PASSPHRASE }}" \ | |
-Dorg.gradle.internal.network.retry.max.attempts=5 -Dorg.gradle.internal.network.retry.initial.backOff=5000 | |
- name: Wait for artifacts to be all available |