Skip to content

Add test for encoding classpath.txt V2 #31

Add test for encoding classpath.txt V2

Add test for encoding classpath.txt V2 #31

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: RELEASE
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
forced_version:
description: 'FORCED_VERSION to use'
required: true
type: string
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
env:
CI: true
FORCED_VERSION: ${{ inputs.forced_version || github.ref }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history so all branches and tags are available
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Set up Wine environment
run: |
sudo dpkg --add-architecture i386
sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -cs)/winehq-$(lsb_release -cs).sources
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
wine --version
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
- name: Build with Gradle Wrapper
run: ./gradlew createInstallerJar
- name: Gradle createExe
run: ./gradlew createExe
- name: Gradle updateVersionJson
run: ./gradlew updateVersionJson
- name: Github Release
uses: softprops/action-gh-release@69320dbe05506a9a39fc8ae11030b214ec2d1f87
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
build/korge-forge-installer.jar
build/korge-forge-installer.exe
build/install-korge-forge.cmd
build/install-korge-forge.sh
build/version.json
- name: Copy CMD, SH, version.json
run: |
cp build/install-korge-forge.cmd docs
cp build/install-korge-forge.sh docs
cp build/version.json docs
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload docs folder
path: 'docs'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Prepare branch
run: |
git stash push
git fetch origin main
git checkout main
git stash pop
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
author_name: Release
author_email: release@localhost
message: 'Updated scripts to ${{ inputs.forced_version || github.ref }}'