diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6ffbeb8..3648117 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,10 +2,12 @@ name: CI on: push: - branches: [main] + branches: [main, feature/AND-81-compose-ktx] # Release tag format is [module-name]-v[androidx-version]-[ktx-version] - # For example: fragment-ktx-v1.3.5-0 - tags: ['*-ktx-v*-[0-9]+'] + # For example: fragment-ktx-v1.3.5-0, compose-gears-v.1.1.1-1 + tags: + - '*-ktx-v*-[0-9]+' + - '*-gears-v*-[0-9]+' pull_request: branches: [main] @@ -53,13 +55,15 @@ jobs: id: get-module-name run: | tag=${GITHUB_REF#refs/tags/} - echo "result=${tag/-v*}" >> "$GITHUB_OUTPUT" + echo $tag + echo "module=${tag/-v*}" >> "$GITHUB_OUTPUT" + echo "namespace=${tag/-v*}" >> "$GITHUB_OUTPUT" - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 - name: Run Publish - run: ./gradlew :ktx:${{ steps.get-module-name.outputs.result }}:publish + run: echo namespace = ${{ steps.get-module-name.outputs.namespace }} module = ${{ steps.get-module-name.outputs.module }} env: ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }} ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}