mirror of
https://github.com/InsanusMokrassar/KotlinPublicationScriptsBuilder.git
synced 2024-12-22 16:47:22 +00:00
Create commit-release.yml
This commit is contained in:
parent
ba95016960
commit
06da1a92e8
38
.github/workflows/commit-release.yml
vendored
Normal file
38
.github/workflows/commit-release.yml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
on: [push]
|
||||
|
||||
name: Commit release
|
||||
|
||||
jobs:
|
||||
build-ubuntu:
|
||||
name: Commit release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup JDK
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
- name: Build
|
||||
run: ./gradlew packageUberJarForCurrentOS
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Commit ${{ github.ref }}
|
||||
body: It is just temporal release for ${{ github.ref }} commit
|
||||
draft: false
|
||||
prerelease: true
|
||||
- name: Upload Ubuntu Release Asset
|
||||
id: upload-ubuntu-release-asset
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||
asset_path: ./build/compose/jars/KotlinPublicationScriptsBuilder-linux-x64.jar
|
||||
asset_name: KotlinPublicationScriptsBuilder-linux-x64.jar
|
||||
asset_content_type: application/java-archive
|
Loading…
Reference in New Issue
Block a user