Created
June 24, 2024 22:41
-
-
Save AndreAugustoDev/9a737bf7741038beb2abbdc78215cb0b to your computer and use it in GitHub Desktop.
Minecraft mod build & release
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: Build project | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Set up JDK 20 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "adopt" | |
java-version: 20 | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ github.event.repository.name }} | |
path: build/libs | |
- name: Upload to Github Release | |
uses: xresloader/upload-to-github-release@v1.6.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "build/libs/*.jar" | |
tags: false | |
draft: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment