Skip to content

Commit

Permalink
ci: fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfara authored and DanySK committed Mar 4, 2023
1 parent 68f4d76 commit b2da69b
Showing 1 changed file with 51 additions and 50 deletions.
101 changes: 51 additions & 50 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit b2da69b

Please sign in to comment.