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)
|
||||
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
|
||||
|
|
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:
|
||||
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 Artifacts from Latest Build
|
||||
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
|
||||
id: get-run
|
||||
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: Download Signed AAB
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: signed-aab
|
||||
workflow-run-id: ${{ env.run_id }}
|
||||
path: ./release
|
||||
|
||||
- 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 Debug Symbols
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: debug-symbols
|
||||
workflow-run-id: ${{ env.run_id }}
|
||||
path: ./release/symbols
|
||||
|
||||
- name: Download Signed AAB
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: signed-aab
|
||||
run-id: ${{ steps.get-run.outputs.run_id }}
|
||||
path: ./release
|
||||
- name: Use What's New Message
|
||||
run: |
|
||||
mkdir ./release/whatsnew
|
||||
cp whatsnew.txt ./release/whatsnew/whatsnew-en-US
|
||||
|
||||
|
||||
- name: Download Debug Symbols
|
||||
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: List Downloaded Files
|
||||
run: ls -laR ./release
|
||||
|
||||
# - name: Create service_account.json
|
||||
# run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json
|
||||
|
|
Loading…
Reference in a new issue