Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Atrimilan committed Feb 1, 2025
1 parent a7a6ae8 commit adf6e76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
distribution: 'corretto'
java-version: '21'

- name: Extract project version
run: |
projectVersion=$(grep '^projectVersion=' gradle.properties | cut -d '=' -f2)
echo "projectVersion=${projectVersion}" >> $GITHUB_ENV
- name: Build plugin with Gradle
run: ./gradlew build

Expand All @@ -26,9 +31,13 @@ jobs:
with:
curseforge-id: ${{ vars.CURSEFORGE_PROJECT_ID }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

github-token: ${{ secrets.GITHUB_TOKEN }}
github-tag: ${{ env.projectVersion }}

files: build/libs/*.jar
loaders: paper
changelog-file: changelogs/${{ env.projectVersion }}.md

- name: End message
run: echo 'Plugin has been successfully published ✅'

0 comments on commit adf6e76

Please sign in to comment.