Skip to content

Commit

Permalink
build: Publication workflows were migrated to mavenPublish task.
Browse files Browse the repository at this point in the history
  • Loading branch information
malilex committed Jun 26, 2024
1 parent 14e59ea commit cdd4d22
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 30 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish-all-tokens-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
tags:
# Здесь используется не полный regex для даты, т.к. валидность даты - здесь пока не критично
- "sdds-tokens-all-[0-9]{2}/[0-9]{2}/[0-9]{4}"
- "sdds-tokens-all-[0-9]{2}.[0-9]{2}.[0-9]{4}"

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
Expand All @@ -26,7 +26,8 @@ jobs:
OSS_SIGNING_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID }}
OSS_SIGNING_KEY: ${{ secrets.OSS_SIGNING_KEY }}
OSS_SIGNING_PASSWORD: ${{ secrets.OSS_SIGNING_PASSWORD }}
run: ./gradlew :tokens:mavenPublishAll --info -PbranchName=main -PpublicationToken=${{ secrets.PP_AUTH_TOKEN }}
PP_AUTH_TOKEN: ${{ secrets.PP_AUTH_TOKEN }}
run: ./gradlew :tokens:mavenPublishAll --info -PbranchName=main

- name: Upload distributions
uses: actions/upload-artifact@v4
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/publish-icons-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,11 @@ jobs:
OSS_SIGNING_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID }}
OSS_SIGNING_KEY: ${{ secrets.OSS_SIGNING_KEY }}
OSS_SIGNING_PASSWORD: ${{ secrets.OSS_SIGNING_PASSWORD }}
run: ./gradlew :sdds-core:icons:generateDistributionZip --info -PbranchName=main
PP_AUTH_TOKEN: ${{ secrets.PP_AUTH_TOKEN }}
run: ./gradlew :sdds-core:icons:mavenPublish --info -PbranchName=main

- name: Upload distribution
uses: actions/upload-artifact@v4
with:
name: distribution
path: sdds-core/icons/build/distributions/*.zip

- name: Maven Publish
uses: ./.github/actions/maven-publish
with:
bundle: sdds-core/icons/build/distributions/sdds-icons.zip
publishingType: 'USER_MANAGED'
publicationName: ${{ github.ref_name }}
publicationToken: ${{ secrets.PP_AUTH_TOKEN }}
11 changes: 2 additions & 9 deletions .github/workflows/publish-uikit-compose-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,11 @@ jobs:
OSS_SIGNING_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID }}
OSS_SIGNING_KEY: ${{ secrets.OSS_SIGNING_KEY }}
OSS_SIGNING_PASSWORD: ${{ secrets.OSS_SIGNING_PASSWORD }}
run: ./gradlew :sdds-core:uikit-compose:generateDistributionZip --info -PbranchName=main
PP_AUTH_TOKEN: ${{ secrets.PP_AUTH_TOKEN }}
run: ./gradlew :sdds-core:uikit-compose:mavenPublish --info -PbranchName=main

- name: Upload distribution
uses: actions/upload-artifact@v4
with:
name: distribution
path: sdds-core/uikit-compose/build/distributions/*.zip

- name: Maven Publish
uses: ./.github/actions/maven-publish
with:
bundle: sdds-core/uikit-compose/build/distributions/sdds-uikit-compose.zip
publishingType: 'USER_MANAGED'
publicationName: ${{ github.ref_name }}
publicationToken: ${{ secrets.PP_AUTH_TOKEN }}
13 changes: 3 additions & 10 deletions .github/workflows/publish-uikit-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,16 @@ jobs:
- name: Prepare environment
uses: ./.github/actions/prepare-android-env

- name: Generate distribution zip
- name: Generate and publish distributions to maven
env:
OSS_SIGNING_KEY_ID: ${{ secrets.OSS_SIGNING_KEY_ID }}
OSS_SIGNING_KEY: ${{ secrets.OSS_SIGNING_KEY }}
OSS_SIGNING_PASSWORD: ${{ secrets.OSS_SIGNING_PASSWORD }}
run: ./gradlew :sdds-core:uikit:generateDistributionZip --info -PbranchName=main
PP_AUTH_TOKEN: ${{ secrets.PP_AUTH_TOKEN }}
run: ./gradlew :sdds-core:uikit:mavenPublish --info -PbranchName=main

- name: Upload distribution
uses: actions/upload-artifact@v4
with:
name: distribution
path: sdds-core/uikit/build/distributions/*.zip

- name: Maven Publish
uses: ./.github/actions/maven-publish
with:
bundle: sdds-core/uikit/build/distributions/sdds-uikit.zip
publishingType: 'USER_MANAGED'
publicationName: ${{ github.ref_name }}
publicationToken: ${{ secrets.PP_AUTH_TOKEN }}

0 comments on commit cdd4d22

Please sign in to comment.