Skip to content

Commit

Permalink
Updating build yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mirzemehdi committed Nov 12, 2023
1 parent 1431350 commit 1cbf004
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: ./gradlew ${{ matrix.config.tasks }}

release:
if: ${{ github.event_name != 'pull_request' }}
if: startsWith(github.ref, 'refs/tags/')
runs-on: macos-latest
needs:
- build
Expand Down Expand Up @@ -109,3 +109,11 @@ jobs:
- name: Release to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

- name: Create new release from tag
env:
github_token: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
token: ${{ env.github_token }}
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ plugins {
alias(libs.plugins.kotlinx.binary.validator)
}

group = "io.github.mirzemehdi"
version = "0.1.1"


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

0 comments on commit 1cbf004

Please sign in to comment.