-
Notifications
You must be signed in to change notification settings - Fork 24
54 lines (47 loc) · 1.6 KB
/
android-cts-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 2021-2022, Collabora, Ltd.
# SPDX-License-Identifier: CC0-1.0
name: Android OpenXR-CTS - Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
# CTS
android-build:
uses: ./.github/workflows/android-cts-build.yml
with:
gradleTask: assembleRelease
gradleOutputDir: src/conformance/build/outputs/apk/release
sign-and-publish:
if: startsWith(github.ref, 'refs/tags/')
needs:
- android-build
env:
# SIGNED_FILE: ${{ steps.sign_cts.outputs.signedReleaseFile }}
TAGNAME: "${{ github.event.release.tag_name }}"
runs-on: ubuntu-latest
steps:
- name: Retrieve artifacts
uses: actions/download-artifact@v3
with:
name: android-openxr-cts-unsigned
path: src/conformance/build/outputs/apk/release
- name: Sign OpenXR-CTS Android release
uses: r0adkll/sign-android-release@349ebdef58775b1e0d8099458af0816dc79b6407
id: sign_cts
with:
releaseDirectory: src/conformance/build/outputs/apk/release
signingKeyBase64: "${{ secrets.APK_SIGNING_KEY }}"
alias: "${{ secrets.APK_ALIAS }}"
keyStorePassword: "${{ secrets.APK_KEY_STORE_PASSWORD }}"
keyPassword: "${{ secrets.APK_KEY_PASSWORD }}"
env:
BUILD_TOOLS_VERSION: "30.0.3"
- name: Rename APK
env:
SIGNED_FILE: "${{ steps.sign_cts.outputs.signedReleaseFile }}"
run: mv $SIGNED_FILE $TAGNAME.apk
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "${{ github.event.release.tag_name }}.apk"