Fix publish workflow and update README

Closes #74.
This commit is contained in:
Lonami Exo 2020-10-30 10:54:21 +01:00
parent 68471bc30f
commit 8fabbfef8c
2 changed files with 12 additions and 2 deletions

View file

@ -23,6 +23,14 @@ jobs:
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew desktop:dist run: ./gradlew desktop:dist
- name: Define env vars
id: vars
run: |
echo ::set-output name=jar_file::\
$(echo ./desktop/build/libs/*.jar)
echo ::set-output name=version::\
$(echo ./desktop/build/libs/*.jar | grep -Po -- '(?<=-)(.+?)(?=\.jar)')
- name: Create release - name: Create release
id: create_release id: create_release
uses: actions/create-release@v1 uses: actions/create-release@v1
@ -40,6 +48,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./desktop/build/libs/*.jar asset_path: ${{ steps.vars.outputs.jar_file }}
asset_name: Klooni-${{ github.ref }}.jar asset_name: Klooni-${{ steps.vars.outputs.version }}.jar
asset_content_type: application/java-archive asset_content_type: application/java-archive

View file

@ -4,6 +4,8 @@ Play 1010! for free! Add your own themes! Contribute! Make the game yours!
[<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/app/dev.lonami.klooni) [<img src="https://f-droid.org/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/app/dev.lonami.klooni)
(Desktop builds are available on the [releases page](https://github.com/LonamiWebs/Klooni1010/releases).)
This project is licensed under [GPLv3+](LICENSE). This project is licensed under [GPLv3+](LICENSE).
**Table of contents**: **Table of contents**: