split fdroid ci out
This commit is contained in:
parent
9827c76514
commit
a04dd6ad31
31
.github/workflows/fdroid.yml
vendored
Normal file
31
.github/workflows/fdroid.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Fdroid
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- '[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+-[0-9]+'
|
||||||
|
- '[0-9]+.[0-9]+.[0-9]+-[0-9]+'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
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
|
20
.github/workflows/flutter-tag.yml
vendored
20
.github/workflows/flutter-tag.yml
vendored
@ -16,23 +16,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
upload-artifact: true
|
upload-artifact: true
|
||||||
upload-tag: ${{ github.ref_name }}
|
upload-tag: ${{ 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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user