Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Publish rustdesk version file on tag

Vasyl Gello51905896532a
diff --git a/.github/workflows/flutter-tag.yml b/.github/workflows/flutter-tag.yml
index df1b52495..f69f06acf 100644
--- a/.github/workflows/flutter-tag.yml
+++ b/.github/workflows/flutter-tag.yml
@@ -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