Publish rustdesk version file on tag

[skip ci]

Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
This commit is contained in:
Vasyl Gello 2023-11-08 09:12:36 +02:00
parent cb9a1b4bef
commit 5190589653

View File

@ -15,4 +15,24 @@ jobs:
secrets: inherit
with:
upload-artifact: true
upload-tag: "1.2.4"
upload-tag: ${{ env.GITHUB_REF_NAME }}
update-fdroid-version-file:
name: Publish Rustdesk version file for F-Droid updater
runs-on: ubuntu-latest
steps:
- name: Generate Rustdesk version file
run: |
UPSTREAM_VERNAME="$GITHUB_REF_NAME"
UPSTREAM_VERCODE="$(echo "$UPSTREAM_VERNAME" | tr -d '.')"
echo "versionName=$UPSTREAM_VERNAME" > rustdesk-version.txt
echo "versionCode=$UPSTREAM_VERCODE" >> rustdesk-version.txt
shell: bash
- name: Publish Rustdesk version file
uses: softprops/action-gh-release@v1
with:
prerelease: true
tag_name: "fdroid-version"
files: |
./rustdesk-version.txt