From 758c289be56a12e49c47dae95f3bdb8346f4a3b1 Mon Sep 17 00:00:00 2001 From: nomadics9 Date: Mon, 6 Jan 2025 02:12:43 +0300 Subject: [PATCH] testing --- .github/workflows/publish.yml | 37 +++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 926abd2..9e17fcd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,25 +8,25 @@ jobs: container: ghcr.io/catthehacker/ubuntu:act-latest steps: - - name: Get Artifacts from Latest Build - id: get-artifacts + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Parse version.txt + id: parse_version 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 + VERSION_NAME=$(grep '^VERSION_NAME=' version.txt | awk -F 'VERSION_NAME=v' '{print $2}') + echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV - - name: Download Signed AAB - uses: actions/download-artifact@v3 + - name: Download Assets + uses: actions/forgejo-release@v2 with: - name: signed-aab - workflow-run-id: ${{ env.run_id }} - path: ./release - - - name: Download Debug Symbols - uses: actions/download-artifact@v3 - with: - name: debug-symbols - workflow-run-id: ${{ env.run_id }} - path: ./release/symbols + url: https://git.askar.tv + repo: nomad/alaskartv-app + tag: "${{ env.VERSION_NAME }}" + release-dir: ./ + direction: download + env: + VERSION_NAME: ${{ env.VERSION_NAME }} - name: Use What's New Message run: | @@ -34,7 +34,10 @@ jobs: cp whatsnew.txt ./release/whatsnew/whatsnew-en-US - name: List Downloaded Files - run: ls -laR ./release + run: + ls -laR ./release + echo "release files" + ls -laR dist/release # - name: Create service_account.json # run: echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_account.json