Skip to content

Commit

Permalink
Merge pull request #64 from aschuhardt/develop
Browse files Browse the repository at this point in the history
set the current version from deploy-main
  • Loading branch information
aschuhardt authored Oct 31, 2023
2 parents da11a89 + 0eeff85 commit abd3949
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
branch: main
branch: main
allow_forks: false
- name: Copy File
run: cp ./**/version .
- name: Read Version
id: read_version
run: echo "version=$(cat version | xargs)" >> "$GITHUB_OUTPUT"
run: echo "version=$(cat version | tr -d '\r\n')" >> "$GITHUB_OUTPUT"
deploy_google:
runs-on: ubuntu-latest
name: Deploy to Google Play
Expand Down Expand Up @@ -80,8 +80,9 @@ jobs:
echo "keypass: ${{ secrets.ROSYCROW_SIGNING_KEY_PASSWORD }}" >> config.yml
- name: Get the Repo Contents
run: |
cd fdroid
echo "get -R repo" | sftp -o StrictHostKeyChecking=no github@rosy-crow.app:/var/www/rosy-crow/fdroid
mkdir -p fdroid/repo
cd fdroid/repo
echo "get -R repo/*.apk" | sftp -o StrictHostKeyChecking=no github@rosy-crow.app:/var/www/rosy-crow/fdroid
- name: Download workflow artifact
uses: dawidd6/action-download-artifact@v2
with:
Expand All @@ -93,13 +94,21 @@ jobs:
cp ./**/*.apk .
cp app.rosy_crow-Signed.apk fdroid/repo/app.rosy_crow-Signed_${{ needs.read_version.outputs.version }}.apk
- name: Install Tools
run: sudo apt install fdroidserver android-sdk-build-tools
run: |
sudo add-apt-repository ppa:fdroid/fdroidserver
sudo apt-get update
sudo apt-get install fdroidserver
- name: Set Current Version and VersionCode
run: |
export VERSION_CODE=$(aapt dump badging fdroid/repo/app.rosy_crow-Signed_${{ needs.read_version.outputs.version }}.apk | sed -E -e "s/.*versionCode='([0-9]+)'.*/\1/g" | head -n 1)
echo "Version: ${{ needs.read_version.outputs.version }} VersionCode: $VERSION_CODE"
echo "CurrentVersion: ${{ needs.read_version.outputs.version }}" >> fdroid/metadata/app.rosy_crow.yml
echo "CurrentVersionCode: $VERSION_CODE" >> fdroid/metadata/app.rosy_crow.yml
- name: Update F-Droid Index
run: |
cd fdroid
fdroid update -c
fdroid update
echo "${{ needs.read_version.outputs.version }}" > repo/latest
- name: Upload Repo
run: |
cd fdroid
Expand Down
1 change: 0 additions & 1 deletion fdroid/metadata/app.rosy_crow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ Name: Rosy Crow
SourceCode: https://github.com/aschuhardt/rosy-crow
Summary: A feature-rich Gemini client for Android
WebSite: https://rosy-crow.app
CurrentVersion: 1.3.1
Liberapay: addison

0 comments on commit abd3949

Please sign in to comment.