Skip to content

Update prerelease.yml #5

Update prerelease.yml

Update prerelease.yml #5

Workflow file for this run

name: "pre-release"
on:
push:
branches:
- "main"
jobs:
pre-release:
name: "Pre Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # A non-shallow repository clone is required
- name: Set up Java 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'zulu'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Run PackSquash
uses: ComunidadAylas/[email protected]
with:
packsquash_version: latest
options: |
pack_directory = 'resourcepack'
zip_spec_conformance_level = 'high'
output_file_path = '/tmp/pack.zip'
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Development Build"
files: |
LICENSE
build/libs/*.jar
/tmp/pack.zip