From 802a84b1040109892a85c5493f209eebf834ee16 Mon Sep 17 00:00:00 2001 From: Sk Niyaj Ali Date: Fri, 29 Nov 2024 15:53:36 +0530 Subject: [PATCH] chore: Fixing workflow usage --- .github/workflows/build_and_publish_on_platforms.yaml | 5 ++++- .github/workflows/make_site.yaml | 10 ++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_and_publish_on_platforms.yaml b/.github/workflows/build_and_publish_on_platforms.yaml index ad93877a7..d8836edeb 100644 --- a/.github/workflows/build_and_publish_on_platforms.yaml +++ b/.github/workflows/build_and_publish_on_platforms.yaml @@ -138,7 +138,7 @@ jobs: - name: Move APK to build directory run: | mkdir -p ./mifospay-android/build/outputs/apk/prod/release/ - mv ./android-artifacts/mifospay-android-prod-release.apk ./mifospay-android/build/outputs/apk/prod/release/ + mv ./android-artifacts/prod/release/mifospay-android-prod-release.apk ./mifospay-android/build/outputs/apk/prod/release/ mv ./changelogBeta ./mifospay-android/build/outputs/ @@ -415,6 +415,9 @@ jobs: needs: [ build_web ] if: inputs.publish_web runs-on: ubuntu-latest + permissions: + id-token: write + pages: write steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 diff --git a/.github/workflows/make_site.yaml b/.github/workflows/make_site.yaml index 8fe92f6bd..f39002290 100644 --- a/.github/workflows/make_site.yaml +++ b/.github/workflows/make_site.yaml @@ -7,12 +7,6 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: @@ -25,6 +19,10 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: windows-latest + permissions: + contents: read + pages: write + id-token: write steps: - uses: actions/checkout@v4 - uses: actions/setup-java@v4