Various issue fixes (#4031) #1966
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: [push] | |
concurrency: ci-${{ github.ref }} | |
jobs: | |
publish: | |
if: ${{ github.repository_owner == 'FabricMC' }} | |
runs-on: ubuntu-24.04 | |
container: | |
image: eclipse-temurin:21-jdk | |
options: --user root | |
steps: | |
- uses: actions/checkout@v4 | |
# Generate the build number based on tags to allow per branch build numbers, not something github provides by default. | |
- name: Generate build number | |
id: buildnumber | |
uses: onyxmueller/build-tag-number@v1 | |
with: | |
token: ${{ secrets.github_token }} | |
prefix: "build/${{ github.ref }}" | |
- run: ./gradlew build javadocJar checkVersion publish --stacktrace | |
env: | |
MAVEN_URL: ${{ secrets.MAVEN_URL }} | |
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
BRANCH_NAME: ${{ github.ref }} |