This commit is contained in:
nomadics9 2025-01-05 16:26:05 +03:00
parent c5e6c7a028
commit 199583fda7
2 changed files with 25 additions and 48 deletions

View file

@ -179,12 +179,6 @@ jobs:
jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1)
echo "run_id=$LATEST_RUN" >> "$GITHUB_OUTPUT"
- name: Test API
env:
MY_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
curl -v -H "Authorization: token $MY_TOKEN" \
"https://git.askar.tv/api/v1/repos/${{ github.repository }}/actions/runs"
- name: Download Signed AAB
uses: actions/download-artifact@v3

View file

@ -1,48 +1,31 @@
name: Publish to Google Play
name: Publish AlaskarTV
on:
workflow_dispatch:
jobs:
publish:
runs-on: docker
runs-on: ubuntu-latest
container: ghcr.io/catthehacker/ubuntu:act-latest
permissions:
actions: read
contents: read
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get latest successful run ID
id: get-run
- name: Get Artifacts from Latest Build
id: get-artifacts
run: |
LATEST_RUN=$(curl -s -H "Authorization: token ${FORGEJO_TOKEN}" \
"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: Test API
env:
MY_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
run: |
curl -v -H "Authorization: token $MY_TOKEN" \
"https://git.askar.tv/api/v1/repos/${{ github.repository }}/actions/runs"
LATEST_RUN=$(gh run list --workflow main.yml --json conclusion,createdAt,displayTitle,headSha --limit 1 | jq -r '.[0].id')
echo "run_id=$LATEST_RUN" >> $GITHUB_ENV
- name: Download Signed AAB
uses: actions/download-artifact@v3
with:
name: signed-aab
run-id: ${{ steps.get-run.outputs.run_id }}
workflow-run-id: ${{ env.run_id }}
path: ./release
- name: Download Debug Symbols
uses: actions/download-artifact@v3
with:
workflow: .github/workflows/main.yml
workflow_conclusion: success
name: debug-symbols
workflow-run-id: ${{ env.run_id }}
path: ./release/symbols
- name: Use What's New Message