Skip to content

Commit

Permalink
Updating yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mirzemehdi committed Nov 12, 2023
1 parent d165267 commit 05331a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ on:
branches: [ "main" ]


#concurrency:
# group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
# cancel-in-progress: true


concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand Down Expand Up @@ -62,7 +64,6 @@ jobs:
run: ./gradlew ${{ matrix.config.tasks }}

release:
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-latest
needs:
- build
Expand Down Expand Up @@ -98,6 +99,7 @@ jobs:
GPG_KEY_SECRET: ${{ secrets.GPG_KEY_SECRET }}

- name: Release to sonatype
if: startsWith(github.ref, 'refs/tags/')
run: ./gradlew publishAllPublicationsToMavenRepository

- name: Generate docs with dokka
Expand All @@ -113,6 +115,7 @@ jobs:
uses: actions/deploy-pages@v1

- name: Create new release from tag
if: startsWith(github.ref, 'refs/tags/')
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {

allprojects {
group = "io.github.mirzemehdi"
version = "0.1.2"
version = "0.1.3"
val sonatypeUsername = gradleLocalProperties(rootDir).getProperty("sonatypeUsername")
val sonatypePassword = gradleLocalProperties(rootDir).getProperty("sonatypePassword")
val gpgKeySecret = gradleLocalProperties(rootDir).getProperty("gpgKeySecret")
Expand Down

0 comments on commit 05331a6

Please sign in to comment.