2021-03-02 08:02:57 +00:00
on :
push :
branches :
- master
2021-02-27 19:06:56 +00:00
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
2021-03-01 14:46:35 +00:00
- name : Set version from gradle.properties
run : echo "version=` cat gradle.properties | grep ^version= | grep -o [\\.0-9]* `" >> $GITHUB_ENV
2021-02-27 19:06:56 +00:00
- name : Build
2022-11-16 12:39:28 +00:00
run : ./gradlew build packageReleaseUberJarForCurrentOS
2021-03-02 07:53:12 +00:00
- name : Publish Web
uses : peaceiris/actions-gh-pages@v3
with :
github_token : ${{ secrets.GITHUB_TOKEN }}
2022-11-16 14:35:38 +00:00
publish_dir : ./core/build/distributions
2021-03-02 07:53:12 +00:00
publish_branch : site
2021-02-27 19:06:56 +00:00
- 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 :
2021-02-27 19:41:13 +00:00
tag_name : build-${{ github.sha }}
2021-03-01 14:46:35 +00:00
release_name : "Build #${{ github.run_number }}"
2021-02-27 19:35:07 +00:00
body : It is just temporal release for ${{ github.sha }} commit
2021-02-27 19:06:56 +00:00
draft : false
prerelease : true
- name : Upload Ubuntu Release Asset
2022-11-16 11:58:35 +00:00
id : upload-ubuntu-release-asset
2021-02-27 19:06:56 +00:00
uses : actions/upload-release-asset@v1
env :
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
with :
2022-11-16 11:58:35 +00:00
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
2022-11-16 14:34:08 +00:00
asset_path : "core/build/compose/jars/*.jar"
2021-02-27 19:06:56 +00:00
asset_name : KotlinPublicationScriptsBuilder-linux-x64.jar
asset_content_type : application/java-archive