Skip to content

Commit

Permalink
Fix publish.yml so that the downloaded artifact can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
jsubloom committed Sep 14, 2023
1 parent 4f63ca6 commit fc1fc0f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ on:
releaseChannel:
type: string
required: true
run-name: Publish ${{ inputs.platform }} - ${{ inputs.releaseChannel }} (${{ inputs.runId }})

jobs:
publish-mobile:
name: Publish Mobile App
name: Publish ${{ inputs.platform }} - ${{ inputs.releaseChannel }} ()
runs-on: ubuntu-latest

steps:
Expand All @@ -67,19 +68,22 @@ jobs:
uses: dawidd6/action-download-artifact@v2
with:
run_id: ${{ inputs.runId }}
path: ./artifacts
path: ./packages/mobile/artifacts
name: BloomReaderLite-${{ inputs.platform }}-${{ inputs.releaseChannel }}
search_artifacts: true

- name: "Debug: List directory contents"
run: ls -l artifacts
working-directory: packages/mobile

- name: Find Build Artifact
id: find-build-artifact
# Note: We are expecting the artifacts folder to only contain one file in it, which is the APK or IPA file for the requested platform/releaseChannel
run: |
artifact_path=$(find ./artifacts -name 'build-*')
echo "artifact=$artifact_path" >> $GITHUB_OUTPUT
# Note: It is more straightforward if this is run from the same directory that "eas submit" will be run from.
working-directory: packages/mobile

- name: Setup EAS
uses: expo/expo-github-action@v8
Expand Down

0 comments on commit fc1fc0f

Please sign in to comment.