-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
68f4d76
commit b2da69b
Showing
1 changed file
with
51 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,56 +193,56 @@ jobs: | |
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
signing-key: ${{ secrets.SIGNING_KEY }} | ||
signing-password: ${{ secrets.SIGNING_PASSWORD }} | ||
test-drop-repo-task-regression: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: test-drop-task-${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
cancel-in-progress: true | ||
if: >- | ||
!github.event.repository.fork | ||
&& (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) | ||
steps: | ||
- name: Compute the version of the target test project | ||
id: versiontrick | ||
shell: bash | ||
run: | | ||
# Idea: the regex matcher of Renovate keeps this string up to date automatically | ||
# The version is extracted and used to access the correct version of the scripts | ||
USES=$(cat <<TRICK_RENOVATE | ||
- uses: DanySK/[email protected] | ||
TRICK_RENOVATE | ||
) | ||
echo "Scripts update line: \"$USES\"" | ||
echo "Computed version: \"${USES#*@}\"" | ||
echo "version=${USES#*@}" >> $GITHUB_OUTPUT | ||
- name: Checkout Template-for-Kotlin-Multiplatform-Projects ${{ steps.versiontrick.outputs.version }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' | ||
path: 'kt-mp-drop-task' | ||
ref: "${{ steps.versiontrick.outputs.version }}" | ||
repository: 'DanySK/Template-for-Kotlin-Multiplatform-Projects' | ||
submodules: 'recursive' | ||
- name: Checkout publish-on-central | ||
uses: actions/[email protected] | ||
with: | ||
path: 'publish-on-central' | ||
- name: Dry-deploy | ||
uses: DanySK/[email protected] | ||
with: | ||
build-command: true | ||
check-command: true | ||
deploy-command: | | ||
./gradlew --include-build ../publish-on-central createStagingRepositoryOnMavenCentral --parallel | ||
[[ -e "build/staging-repo-ids.properties" ]] || (echo "No staging repo ID found" && exit 1) | ||
REPO_ID="$(cat build/staging-repo-ids.properties)" | ||
./gradlew --include-build ../publish-on-central -PstagingRepoId="$REPO_ID" dropStagingRepositoryOnMavenCentral --parallel | ||
working-directory: kt-mp-drop-task | ||
should-run-codecov: false | ||
should-deploy: true | ||
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
signing-key: ${{ secrets.SIGNING_KEY }} | ||
signing-password: ${{ secrets.SIGNING_PASSWORD }} | ||
test-drop-repo-task-regression: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: test-drop-task-${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
cancel-in-progress: true | ||
if: >- | ||
!github.event.repository.fork | ||
&& (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) | ||
steps: | ||
- name: Compute the version of the target test project | ||
id: versiontrick | ||
shell: bash | ||
run: | | ||
# Idea: the regex matcher of Renovate keeps this string up to date automatically | ||
# The version is extracted and used to access the correct version of the scripts | ||
USES=$(cat <<TRICK_RENOVATE | ||
- uses: DanySK/[email protected] | ||
TRICK_RENOVATE | ||
) | ||
echo "Scripts update line: \"$USES\"" | ||
echo "Computed version: \"${USES#*@}\"" | ||
echo "version=${USES#*@}" >> $GITHUB_OUTPUT | ||
- name: Checkout Template-for-Kotlin-Multiplatform-Projects ${{ steps.versiontrick.outputs.version }} | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: '0' | ||
path: 'kt-mp-drop-task' | ||
ref: "${{ steps.versiontrick.outputs.version }}" | ||
repository: 'DanySK/Template-for-Kotlin-Multiplatform-Projects' | ||
submodules: 'recursive' | ||
- name: Checkout publish-on-central | ||
uses: actions/[email protected] | ||
with: | ||
path: 'publish-on-central' | ||
- name: Dry-deploy | ||
uses: DanySK/[email protected] | ||
with: | ||
build-command: true | ||
check-command: true | ||
deploy-command: | | ||
./gradlew --include-build ../publish-on-central createStagingRepositoryOnMavenCentral --parallel | ||
[[ -e "build/staging-repo-ids.properties" ]] || (echo "No staging repo ID found" && exit 1) | ||
REPO_ID="$(cat build/staging-repo-ids.properties)" | ||
./gradlew --include-build ../publish-on-central -PstagingRepoId="$REPO_ID" dropStagingRepositoryOnMavenCentral --parallel | ||
working-directory: kt-mp-drop-task | ||
should-run-codecov: false | ||
should-deploy: true | ||
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
signing-key: ${{ secrets.SIGNING_KEY }} | ||
signing-password: ${{ secrets.SIGNING_PASSWORD }} | ||
release: | ||
needs: | ||
- build | ||
|
@@ -286,6 +286,7 @@ jobs: | |
- test-alchemist-deployment | ||
- test-kt-multiplatform-deployment | ||
- test-multi-stage-deployment | ||
- test-drop-repo-task-regression | ||
if: >- | ||
always() && ( | ||
contains(join(needs.*.result, ','), 'failure') | ||
|