From 4ef46bd91576063b9084b3089a8c6c91ded4691b Mon Sep 17 00:00:00 2001 From: Sk Niyaj Ali Date: Fri, 29 Nov 2024 17:26:25 +0530 Subject: [PATCH] chore: Fixing workflow usage --- .../build_and_publish_on_platforms.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_and_publish_on_platforms.yaml b/.github/workflows/build_and_publish_on_platforms.yaml index d8836edeb..573476571 100644 --- a/.github/workflows/build_and_publish_on_platforms.yaml +++ b/.github/workflows/build_and_publish_on_platforms.yaml @@ -214,7 +214,6 @@ jobs: # Disabled iOS build for now build_ios: name: Build iOS App - if: inputs.build_ios runs-on: macos-latest steps: - uses: actions/checkout@v4 @@ -235,10 +234,13 @@ jobs: bundle exec fastlane add_plugin firebase_app_distribution bundle exec fastlane add_plugin increment_build_number + - name: Build iOS App + if: inputs.build_ios run: bundle exec fastlane ios build_ios - name: Upload iOS Artifact + if: inputs.build_ios uses: actions/upload-artifact@v4 with: name: ios-app @@ -248,6 +250,7 @@ jobs: publish_ios_app_to_firebase: name: Publish iOS App On Firebase + if: inputs.publish_ios needs: [ build_ios, generate_release_info ] runs-on: macos-latest permissions: @@ -415,6 +418,9 @@ jobs: needs: [ build_web ] if: inputs.publish_web runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} permissions: id-token: write pages: write @@ -431,8 +437,6 @@ jobs: name: web-app path: ./web-app-content - - name: Display structure of downloaded files - run: ls -R ./web-app-content - name: Setup Pages uses: actions/configure-pages@v5 @@ -503,6 +507,9 @@ jobs: path: ./all-artifacts merge-multiple: true + - name: Display structure of downloaded files + run: ls -R ./all-artifacts + - name: Archive Web Build shell: pwsh run: | @@ -518,9 +525,9 @@ jobs: uses: softprops/action-gh-release@v2.0.8 with: tag_name: ${{ needs.generate_release_info.outputs.version }} - body_path: changelogGithub + body_path: ./changelogGithub draft: false prerelease: true files: | - all-artifacts/* - web-app.zip + ./all-artifacts/* + ./web-app.zip