Skip to content

Commit

Permalink
GitHub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
GlennFolker committed Dec 8, 2024
1 parent f7e20a3 commit eebfaef
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
with:
java-version: 17
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Compile project
run: |
chmod +x gradlew
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deployment

on:
release:
types:
- created

permissions:
contents: read
packages: write

jobs:
publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Publish
run: ./gradlew publish -P version="${GITHUB_REF#refs/tags/}"
env:
GITHUB_USERNAME: ${{ secrets.GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 1 addition & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ allprojects{

sourceSets["main"].java.setSrcDirs(listOf(layout.projectDirectory.dir("src")))

group = "com.github.GlennFolker.EntityAnno"
version = "v146.0.9"

repositories{
google()
mavenCentral()
Expand Down Expand Up @@ -80,6 +77,7 @@ allprojects{
}
}

group = "com.github.GlennFolker.EntityAnno"
publishing.repositories.maven{
url = uri("https://maven.pkg.github.com/GlennFolker/EntityAnno")
credentials {
Expand Down

0 comments on commit eebfaef

Please sign in to comment.