release: upload to Google Play with fastlane

Replace the unpinned third-party upload-google-play action with fastlane
supply from a small nix release devshell, and pin the remaining
third-party GitHub release action to a commit SHA.
This commit is contained in:
austinried
2026-10-08 18:52:43 +00:00
parent c76a79c3ed
commit 650d8c49e6
2 changed files with 19 additions and 14 deletions
+15 -14
View File
@@ -42,24 +42,25 @@ jobs:
- name: Read version code - name: Read version code
id: version id: version
run: echo "code=$(grep -oP 'versionCode = \K\d+' app/build.gradle.kts)" >> "$GITHUB_OUTPUT" run: echo "code=$(grep -oP 'versionCode = \K\d+' app/build.gradle.kts)" >> "$GITHUB_OUTPUT"
- name: Stage Play release notes
run: |
mkdir -p whatsnew
cp "metadata/en-US/changelogs/${{ steps.version.outputs.code }}.txt" whatsnew/whatsnew-en-US
- name: Upload to Google Play - name: Upload to Google Play
uses: r0adkll/upload-google-play@v1 env:
with: PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }}
serviceAccountJsonPlainText: ${{ secrets.PLAY_SERVICE_ACCOUNT_JSON }} run: |
packageName: com.subtracks nix develop .#release --command fastlane supply \
releaseFiles: app/build/outputs/bundle/release/app-release.aab --aab app/build/outputs/bundle/release/app-release.aab \
tracks: ${{ vars.PLAY_TRACK || 'internal' }} --package_name com.subtracks \
status: completed --track "${{ vars.PLAY_TRACK || 'internal' }}" \
whatsNewDirectory: whatsnew --release_status completed \
mappingFile: app/build/outputs/mapping/release/mapping.txt --json_key_data "$PLAY_SERVICE_ACCOUNT_JSON" \
--metadata_path metadata \
--skip_upload_metadata \
--skip_upload_images \
--skip_upload_screenshots \
--mapping app/build/outputs/mapping/release/mapping.txt
- name: Collect release APK - name: Collect release APK
run: cp app/build/outputs/apk/release/app-release.apk subtracks.apk run: cp app/build/outputs/apk/release/app-release.apk subtracks.apk
- name: Create GitHub release - name: Create GitHub release
uses: softprops/action-gh-release@v3 uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3
with: with:
body_path: metadata/en-US/changelogs/${{ steps.version.outputs.code }}.txt body_path: metadata/en-US/changelogs/${{ steps.version.outputs.code }}.txt
files: subtracks.apk files: subtracks.apk
+4
View File
@@ -83,6 +83,10 @@
inherit shellHook; inherit shellHook;
}; };
release = pkgs.mkShell {
packages = [ pkgs.fastlane ];
};
} }
); );
}; };