Skip to content

Fix

Fix #3

Workflow file for this run

name: Java CI
on: [push]
jobs:
buildJar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up PATH
run: echo "${ANDROID_HOME}/build-tools/30.0.1" >> $GITHUB_PATH
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Build jar
run: ./gradlew jar
- name: Upload built jar file
uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}
path: build/libs/${{ github.event.repository.name }}.jar
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{github.run_number}}
release_name: ${{github.run_number}}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/libs/fooKotlinScriptSupport.jar
asset_name: fooKotlinScriptSupport.jar
asset_content_type: application/zip