Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
selcarpa committed Jun 19, 2023
1 parent 10ef095 commit 550ab61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
name: Gradle Package

on:
release:
types: [created]
push:
tags:
- '*-SNAPSHOT' # Push events to matching branches with a -SNAPSHOT suffix

jobs:
build:
Expand All @@ -27,19 +28,13 @@ jobs:
java-version: '11'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
uses: gradle/gradle-build-action@v2
with:
arguments: build

# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
- name: Publish to GitHub Packages
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
- uses: ncipollo/release-action@v1
with:
arguments: publish
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}
artifacts: "build/libs/*-all.jar"
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "one.tain"
version = "1.6-SNAPSHOT"
version = "1.7-SNAPSHOT"

repositories {
mavenCentral()
Expand Down

0 comments on commit 550ab61

Please sign in to comment.