Skip to content

Commit 43450e7

Browse files
Stephen van BeekStephen van Beek
authored andcommitted
Attempting to fix the publishing action
1 parent 3416018 commit 43450e7

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/gradlepublish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ jobs:
2424
# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
2525
# the publishing section of your build.gradle
2626
- name: Publish to GitHub Packages
27-
run: gradle :create-plugin:publish --info
27+
run: |
28+
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
29+
echo "New version: ${NEW_VERSION}"
30+
gradle -Pversion=${NEW_VERSION} :create-plugin:publish --info
2831
env:
2932
USERNAME: ${{ github.actor }}
3033
TOKEN: ${{ secrets.GITHUB_TOKEN }}

create-plugin/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ publishing {
6565
repositories {
6666
maven {
6767
name = "GitHubPackages"
68-
url = uri("https://maven.pkg.github.com/")
68+
url = uri("https://maven.pkg.github.com/HappyValleyIO/sql-parser-plugin")
6969
credentials {
70-
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
71-
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
70+
username = System.getenv("USERNAME")
71+
password = System.getenv("TOKEN")
7272
}
7373
}
7474
}

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ JVM_TARGET_VERSION=1.8
44
ARROW_VERSION=0.10.4
55
ARROW_META_VERSION=1.3.61-SNAPSHOT
66
SHADOW_JAR_VERSION=5.2.0
7+
8+
version=v0.1.2

0 commit comments

Comments
 (0)