Skip to content

package distributable #5

package distributable

package distributable #5

Workflow file for this run

# This file was generated using Kotlin DSL (.github/workflows/create_release.main.kts).
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file.
# Generated with https://github.com/typesafegithub/github-workflows-kt
name: 'package distributable'
on:
push:
tags:
- 'v*'
jobs:
check_yaml_consistency:
name: 'Check YAML consistency'
runs-on: 'ubuntu-latest'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'Execute script'
run: 'rm ''.github/workflows/create_release.yaml'' && ''.github/workflows/create_release.main.kts'''
- id: 'step-2'
name: 'Consistency check'
run: 'git diff --exit-code ''.github/workflows/create_release.yaml'''
build_release:
runs-on: 'windows-latest'
needs:
- 'check_yaml_consistency'
steps:
- id: 'step-0'
name: 'Check out'
uses: 'actions/checkout@v4'
- id: 'step-1'
name: 'setup jdk'
uses: 'actions/setup-java@v3'
with:
java-version: '21'
distribution: 'adopt'
java-package: 'jdk'
architecture: 'x64'
cache: 'gradle'
- id: 'step-2'
name: 'setup gradle'
uses: 'gradle/actions/setup-gradle@v3'
- id: 'step-3'
run: './gradlew packageDistributionForCurrentOS -Ptag=''${{ github.ref_name }}'' --no-daemon'
- id: 'step-4'
name: 'create release'
uses: 'softprops/[email protected]'
with:
files: 'build/compose/binaries/main/msi/*.msi'
fail_on_unmatched_files: 'true'
generate_release_notes: 'true'