Merge pull request #169 from pylonmc/migrate-fluids-to-core #29
Workflow file for this run
This file contains hidden or 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: Create GitHub Release & Publish to Maven Central | |
| on: | |
| push: | |
| tags: ['*'] | |
| jobs: | |
| build: | |
| uses: ./.github/workflows/gradle.yml | |
| with: | |
| version: ${{ github.ref_name }} | |
| github-release: | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Pylon | |
| uses: actions/download-artifact@v4.1.8 | |
| with: | |
| name: pylon-core-${{ github.ref_name }} | |
| - name: Create Release | |
| uses: marvinpinto/action-automatic-releases@latest | |
| with: | |
| repo_token: ${{ secrets.ACCESS_TOKEN }} | |
| draft: false | |
| prerelease: false | |
| automatic_release_tag: ${{ github.ref_name }} | |
| title: Release ${{ github.ref_name }} | |
| files: pylon-core-*.jar | |
| publish: | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4.2.2 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4.6.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4.2.2 | |
| - name: Publish snapshot | |
| run: ./gradlew :pylon-core:publishToCentralPortal -Pversion=${{ github.ref_name }} | |
| env: | |
| SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| SIGNING_KEY: ${{ secrets.PGP_KEY }} | |
| SIGNING_PASSWORD: ${{ secrets.PGP_PASSWORD }} |