From 5d51cdf8050e746ab59e455afd840e191cb70d2b Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Sun, 13 Apr 2025 09:13:23 +0200 Subject: [PATCH 1/9] =?UTF-8?q?=F0=9F=93=9D=20Update=20docs.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 80147309..14fb431a 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,6 +6,9 @@ on: - main workflow_dispatch: +permissions: + contents: write + jobs: generate-and-deploy-docs: runs-on: ubuntu-latest @@ -34,4 +37,4 @@ jobs: uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./doc/api \ No newline at end of file + publish_dir: ./doc/api From 62798db3717f5e3355d25c141ee5d5e31298fc0b Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Sun, 13 Apr 2025 12:01:25 +0200 Subject: [PATCH 2/9] :construction_worker: Update deployment action in docs.yml to use actions/deploy-pages@v4 --- .github/workflows/docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 14fb431a..b48b2e21 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -34,7 +34,8 @@ jobs: # Deploy to GitHub Pages - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v4 + uses: actions/deploy-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} + branch: gh-pages publish_dir: ./doc/api From f935fc70fd7e72fd51067ac50aace7fc4b9bf445 Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:20:46 +0200 Subject: [PATCH 3/9] =?UTF-8?q?=F0=9F=91=B7=20Update=20docs.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 44 ++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b48b2e21..a3cf5d88 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,36 +6,52 @@ on: - main workflow_dispatch: -permissions: - contents: write - jobs: - generate-and-deploy-docs: + build: + name: Build runs-on: ubuntu-latest steps: - # Checkout the repository - - name: Checkout repository + - name: Get files uses: actions/checkout@v4 - # Install Flutter - uses: subosito/flutter-action@v2 with: channel: stable cache: true - # Install dependencies - name: Install dependencies run: flutter pub get - # Generate documentation - name: Generate documentation run: dart doc . - # Deploy to GitHub Pages + - name: Upload build artifacts + uses: actions/upload-artifacts@v4 + with: + name: doc-build + path: ./doc/api + + deploy: + name: Deploy + runs-on: ubuntu-latest + needs: build + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Download build artifacts + uses: actions/download-artifacts@v4 + with: + name: doc-build + path: ./ + - name: Deploy to GitHub Pages + id: deployment uses: actions/deploy-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: gh-pages - publish_dir: ./doc/api From 6cde37b3f03418bf9da2b5c564023d6ed0f6bdd8 Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:27:25 +0200 Subject: [PATCH 4/9] =?UTF-8?q?=F0=9F=91=B7=20Update=20docs.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a3cf5d88..8c672962 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - docs/add-Permissions workflow_dispatch: jobs: @@ -27,7 +28,7 @@ jobs: run: dart doc . - name: Upload build artifacts - uses: actions/upload-artifacts@v4 + uses: actions/upload-artifacts@v3 with: name: doc-build path: ./doc/api From 4599c56dd088c600dbe6c48cd7ee8f69b9c6e008 Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:30:23 +0200 Subject: [PATCH 5/9] =?UTF-8?q?=F0=9F=91=B7=20Test=20different=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8c672962..a0ec94f1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,7 +31,7 @@ jobs: uses: actions/upload-artifacts@v3 with: name: doc-build - path: ./doc/api + path: ./ deploy: name: Deploy From 3fdb09458d56339bc65559512f0ceb104495899a Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:30:36 +0200 Subject: [PATCH 6/9] =?UTF-8?q?=F0=9F=91=B7=20Bump=20version=20to=20v4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a0ec94f1..a6051ecc 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -28,7 +28,7 @@ jobs: run: dart doc . - name: Upload build artifacts - uses: actions/upload-artifacts@v3 + uses: actions/upload-artifacts@v4 with: name: doc-build path: ./ From 07d69c1b4b5f671259e6741a29d00b78bb36da9c Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:32:33 +0200 Subject: [PATCH 7/9] =?UTF-8?q?=F0=9F=91=B7=20Remove=20typo=20s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a6051ecc..20c92c05 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,7 +4,6 @@ on: push: branches: - main - - docs/add-Permissions workflow_dispatch: jobs: @@ -28,10 +27,10 @@ jobs: run: dart doc . - name: Upload build artifacts - uses: actions/upload-artifacts@v4 + uses: actions/upload-artifact@v4 with: name: doc-build - path: ./ + path: ./doc/api deploy: name: Deploy @@ -48,7 +47,7 @@ jobs: steps: - name: Download build artifacts - uses: actions/download-artifacts@v4 + uses: actions/download-artifact@v4 with: name: doc-build path: ./ From cfd60fa172250f2a679e7e2a0b2464e4389c0a85 Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:40:16 +0200 Subject: [PATCH 8/9] =?UTF-8?q?=F0=9F=91=B7=20Update=20docs.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 20c92c05..d68c6bb2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,32 +26,22 @@ jobs: - name: Generate documentation run: dart doc . - - name: Upload build artifacts - uses: actions/upload-artifact@v4 + - name: Upload pages artifacts + id: deployment + uses: actions/upload-pages-artifact@v3 with: - name: doc-build path: ./doc/api deploy: name: Deploy runs-on: ubuntu-latest needs: build - - permissions: - pages: write - id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Download build artifacts - uses: actions/download-artifact@v4 - with: - name: doc-build - path: ./ - - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 From 9d7c8915e001f245df70d0c45674b65d26fa39f9 Mon Sep 17 00:00:00 2001 From: IamPekka058 <59747867+IamPekka058@users.noreply.github.com> Date: Mon, 14 Apr 2025 08:42:12 +0200 Subject: [PATCH 9/9] =?UTF-8?q?=F0=9F=91=B7=20Update=20permissions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d68c6bb2..d06f8cda 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -36,6 +36,10 @@ jobs: name: Deploy runs-on: ubuntu-latest needs: build + + permissions: + pages: write + id-token: write environment: name: github-pages