Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ runs:
./gradlew :android:publishAllPublicationsToGitHubPackagesRepository
./gradlew :compose:publishAllPublicationsToGitHubPackagesRepository
./gradlew :multiplatform:publishAllPublicationsToGitHubPackagesRepository
./gradlew :generator:publishAllPublicationsToGitHubPackagesRepository
39 changes: 0 additions & 39 deletions .github/workflows/publish.yaml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish to GH-packages

on:
pull_request:
types:
- closed
branches:
- master
workflow_dispatch:

jobs:
publish:
if: |
github.event_name == 'workflow_dispatch' ||
(
github.event.pull_request.merged == true &&
startsWith(github.head_ref, 'release/')
)
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: rees46/kmp/.github/actions/publish@master
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
with:
appId: ${{ vars.PUBLIVERSIONER_ID }}
appSecret: ${{ secrets.PUBLIVERSIONER_SECRET }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
12 changes: 5 additions & 7 deletions .github/workflows/version.yaml → .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,28 @@ on:
branches:
- master
paths-ignore:
- .github
- ".github/**"
workflow_dispatch:

jobs:
find-release-commit:
uses: rees46/workflow/.github/workflows/reusable-release-commit-finder.yaml@master
with:
commitMessage: 'feat(release): version'
commitMessage: "feat(release): version"
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}

bump-version:
needs: find-release-commit
if: |
github.event_name == 'workflow_dispatch' ||
(
github.event_name == 'workflow_dispatch' || (
github.event_name == 'push' &&
needs.find-release-commit.outputs.hasCommit == 'false'
)
needs.find-release-commit.outputs.hasCommit == 'false')
uses: rees46/workflow/.github/workflows/reusable-multiplatform-version-bump.yaml@master
permissions: write-all
secrets:
appSecret: ${{ secrets.PUBLIVERSIONER_SECRET }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
with:
appId: ${{ vars.PUBLIVERSIONER_ID }}
reviewerUsername: ${{ vars.REVIEWER_USERNAME }}
reviewerUsername: iwwwanow
3 changes: 1 addition & 2 deletions generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ plugins {
`maven-publish`
}

group = "com.rees46"
version = "1.0.0"
apply(from = rootProject.file("publishing.gradle.kts"))

repositories {
mavenCentral()
Expand Down