Fix CurseForge releaseType variable shadowing in Gradle DSL #6
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: Build | |
| on: | |
| push: | |
| branches: ['**'] | |
| tags: ['v*'] | |
| pull_request: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build | |
| run: ./gradlew build | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: eyemine-${{ github.ref_name }}-${{ github.sha }} | |
| path: | | |
| fabric/build/libs/eyemine-*[0-9].jar | |
| neoforge/build/libs/eyemine-*[0-9].jar | |
| if-no-files-found: warn | |
| retention-days: 14 | |
| - name: Publish to CurseForge | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: ./gradlew :fabric:curseforge :neoforge:curseforge | |
| env: | |
| CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} |