testing
This commit is contained in:
parent
c5e6c7a028
commit
199583fda7
2 changed files with 25 additions and 48 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
@ -179,12 +179,6 @@ jobs:
|
||||||
jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1)
|
jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1)
|
||||||
echo "run_id=$LATEST_RUN" >> "$GITHUB_OUTPUT"
|
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
|
- name: Download Signed AAB
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
|
|
67
.github/workflows/publish.yml
vendored
67
.github/workflows/publish.yml
vendored
|
@ -1,57 +1,40 @@
|
||||||
name: Publish to Google Play
|
name: Publish AlaskarTV
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: docker
|
runs-on: ubuntu-latest
|
||||||
container: ghcr.io/catthehacker/ubuntu:act-latest
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
permissions:
|
|
||||||
actions: read
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repository
|
- name: Get Artifacts from Latest Build
|
||||||
uses: actions/checkout@v4
|
id: get-artifacts
|
||||||
|
run: |
|
||||||
|
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: Get latest successful run ID
|
- name: Download Signed AAB
|
||||||
id: get-run
|
uses: actions/download-artifact@v3
|
||||||
run: |
|
with:
|
||||||
LATEST_RUN=$(curl -s -H "Authorization: token ${FORGEJO_TOKEN}" \
|
name: signed-aab
|
||||||
"https://git.askar.tv/api/v1/repos/nomad/alaskartv-app/actions/runs?status=success&event=push&branch=main" | \
|
workflow-run-id: ${{ env.run_id }}
|
||||||
jq -r '.[] | select(.workflow_id=="main.yml") | .id' | head -n1)
|
path: ./release
|
||||||
echo "run_id=$LATEST_RUN" >> "$GITHUB_OUTPUT"
|
|
||||||
|
|
||||||
- name: Test API
|
- name: Download Debug Symbols
|
||||||
env:
|
uses: actions/download-artifact@v3
|
||||||
MY_TOKEN: ${{ secrets.FORGEJO_TOKEN }}
|
with:
|
||||||
run: |
|
name: debug-symbols
|
||||||
curl -v -H "Authorization: token $MY_TOKEN" \
|
workflow-run-id: ${{ env.run_id }}
|
||||||
"https://git.askar.tv/api/v1/repos/${{ github.repository }}/actions/runs"
|
path: ./release/symbols
|
||||||
|
|
||||||
- name: Download Signed AAB
|
- name: Use What's New Message
|
||||||
uses: actions/download-artifact@v3
|
run: |
|
||||||
with:
|
mkdir ./release/whatsnew
|
||||||
name: signed-aab
|
cp whatsnew.txt ./release/whatsnew/whatsnew-en-US
|
||||||
run-id: ${{ steps.get-run.outputs.run_id }}
|
|
||||||
path: ./release
|
|
||||||
|
|
||||||
|
- name: List Downloaded Files
|
||||||
- name: Download Debug Symbols
|
run: ls -laR ./release
|
||||||
uses: actions/download-artifact@v3
|
|
||||||
with:
|
|
||||||
workflow: .github/workflows/main.yml
|
|
||||||
workflow_conclusion: success
|
|
||||||
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
|
# - name: Create service_account.json
|
||||||
# run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
|
# run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
|
||||||
|
|
Loading…
Reference in a new issue