testing
This commit is contained in:
parent
db0341a2c6
commit
8d27a73cca
1 changed files with 25 additions and 52 deletions
77
.github/workflows/main.yml
vendored
77
.github/workflows/main.yml
vendored
|
@ -61,7 +61,7 @@ jobs:
|
||||||
sed -i 's/applicationId = namespace/applicationId = "'"$APPLICATION_ID"'"/' app-release/app/build.gradle.kts
|
sed -i 's/applicationId = namespace/applicationId = "'"$APPLICATION_ID"'"/' app-release/app/build.gradle.kts
|
||||||
sed -i 's/versionName = .*/versionName = "'"$VERSION_NAME"'"/' app-release/app/build.gradle.kts
|
sed -i 's/versionName = .*/versionName = "'"$VERSION_NAME"'"/' app-release/app/build.gradle.kts
|
||||||
sed -i "s/versionCode = .*/versionCode = $VERSION_CODE/" app-release/app/build.gradle.kts
|
sed -i "s/versionCode = .*/versionCode = $VERSION_CODE/" app-release/app/build.gradle.kts
|
||||||
sed -i "s/setProperty(\"archivesBaseName\", \".*\")/setProperty(\"archivesBaseName\", \"alaskartv-androidtv-v$VERSION_NAME\")/" app-release/app/build.gradle.kts
|
sed -i "s/setProperty(\"archivesBaseName\", \".*\")/setProperty(\"archivesBaseName\", \"alaskartv-androidtv-$VERSION_NAME\")/" app-release/app/build.gradle.kts
|
||||||
|
|
||||||
- name: Update about.kt
|
- name: Update about.kt
|
||||||
run: |
|
run: |
|
||||||
|
@ -161,57 +161,30 @@ jobs:
|
||||||
name: debug-symbols
|
name: debug-symbols
|
||||||
path: app-release/app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
|
path: app-release/app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
|
||||||
|
|
||||||
publish:
|
- name: Prepare Release Assets
|
||||||
runs-on: docker
|
run: |
|
||||||
needs: build
|
mkdir -p ./release-assets
|
||||||
if: github.event_name == 'workflow_dispatch'
|
|
||||||
container: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
|
|
||||||
steps:
|
mv ${{ steps.sign_apk.outputs.signedFiles }} ./release-assets/AlaskarTV-${{ env.VERSION_NAME }}-signed.apk
|
||||||
- name: Checkout Repository
|
mv ${{ steps.sign_aab.outputs.signedFiles }} ./release-assets/AlaskarTV-${{ env.VERSION_NAME }}-signed.aab
|
||||||
uses: actions/checkout@v4
|
zip -j ./release-assets/debug-symbols.zip app-release/app/build/intermediates/merged_native_libs/release/mergeReleaseNativeLibs/out/lib/*
|
||||||
|
|
||||||
- name: Get latest successful run ID
|
# cp whatsnew.txt ./release-assets/release-notes.txt
|
||||||
id: get-run
|
env:
|
||||||
run: |
|
VERSION_NAME: ${{ env.VERSION_NAME }}
|
||||||
LATEST_RUN=$(curl -s -H "Authorization: token ${FORGEJO_TOKEN}" \
|
VERSION_CODE: ${{ env.VERSION_CODE }}
|
||||||
"https://git.askar.tv/api/v1/repos/nomad/alaskartv-app/actions/runs?status=success&event=push&branch=main" | \
|
|
||||||
jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1)
|
|
||||||
echo "run_id=$LATEST_RUN" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
|
|
||||||
- name: Download Signed AAB
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: signed-aab
|
|
||||||
path: ./release
|
|
||||||
|
|
||||||
|
|
||||||
- name: Download Debug Symbols
|
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
name: debug-symbols
|
|
||||||
path: ./release/symbols
|
|
||||||
|
|
||||||
- name: Use What's New Message
|
|
||||||
run: |
|
|
||||||
mkdir ./release/whatsnew
|
|
||||||
cp whatsnew.txt ./release/whatsnew/whatsnew-en-US
|
|
||||||
|
|
||||||
- name: List Downloaded Files
|
|
||||||
run: ls -laR ./release
|
|
||||||
|
|
||||||
# - name: Create service_account.json
|
|
||||||
# run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
|
|
||||||
#
|
|
||||||
# - name: Deploy to Google Play
|
|
||||||
# uses: https://github.com/r0adkll/upload-google-play@v1
|
|
||||||
# with:
|
|
||||||
# serviceAccountJson: service_account.json
|
|
||||||
# packageName: org.askartv.tv
|
|
||||||
# releaseFiles: "./release/*.aab"
|
|
||||||
# debugSymbols: "./release/symbols"
|
|
||||||
# track: production
|
|
||||||
# status: completed
|
|
||||||
# whatsNewDirectory: ./release/whatsnew
|
|
||||||
|
|
||||||
|
- name: Create Release and Upload Assets
|
||||||
|
uses: forgejo/release@v2
|
||||||
|
with:
|
||||||
|
url: https://git.askar.tv
|
||||||
|
repo: nomad/alaskartv-app
|
||||||
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
tag: "${{ env.VERSION_NAME }}"
|
||||||
|
title: "AlaskarTV-${{ env.VERSION_NAME }}-${{ env.VERSION_CODE }}"
|
||||||
|
release-dir: ./release-assets
|
||||||
|
direction: upload
|
||||||
|
env:
|
||||||
|
FORGEJO_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
VERSION_NAME: ${{ env.VERSION_NAME }}
|
||||||
|
VERSION_CODE: ${{ env.VERSION_CODE }}
|
||||||
|
|
Loading…
Reference in a new issue