Skip to content

Commit

Permalink
Update publishPackage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dueris authored Oct 3, 2023
1 parent 157aed2 commit d1bbc49
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/publishPackage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to GitHub Packages
name: Publish Package to GitHub Packages

on:
push:
Expand All @@ -16,21 +16,16 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
java-version: '17' # Adjust the Java version as needed

- name: Build
run: |
./gradlew build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew build


- name: Publish JAR to GitHub Packages
- name: Publish to GitHub Packages
run: |
echo "Publishing JAR to GitHub Packages"
echo "Publishing to GitHub Packages"
echo "registry=https://npm.pkg.github.com/Dueris" >> ~/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> ~/.npmrc
gh release upload v0.2.2 "build/libs/genesis-standalone-mc1.20-v0.2.2.jar"
gh release create v0.2.2 build/libs/genesis-standalone-mc1.20-v0.2.2.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d1bbc49

Please sign in to comment.