From db6d0eaef44c189cb80f10925d25595d97b7da4b Mon Sep 17 00:00:00 2001 From: Hristo Hristov <57346540+Hristo313@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:50:38 +0200 Subject: [PATCH] fix(github-pages): upgrade github pages deploy and artefact versions (#1366) --- .../_base/files/__dot__github/workflows/github-pages.yml | 5 +++-- .../_base/files/__dot__github/workflows/github-pages.yml | 5 +++-- .../_base/files/__dot__github/workflows/github-pages.yml | 5 +++-- .../files/__dot__github/workflows/github-pages.yml | 5 +++-- .../_base/files/__dot__github/workflows/github-pages.yml | 5 +++-- .../files/__dot__github/workflows/github-pages.yml | 5 +++-- 6 files changed, 18 insertions(+), 12 deletions(-) diff --git a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml index 1f58d31f8..f5f154154 100644 --- a/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml +++ b/packages/cli/templates/react/igr-ts/projects/_base/files/__dot__github/workflows/github-pages.yml @@ -13,6 +13,7 @@ jobs: permissions: pages: write id-token: write + actions: read environment: name: github-pages @@ -40,8 +41,8 @@ jobs: - name: SPA routing handling run: cp ./dist/index.html ./dist/404.html - name: Upload build artifact to GitHub Pages - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./dist - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml b/packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml index 51df0793a..66e39ddea 100644 --- a/packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml +++ b/packages/cli/templates/webcomponents/igc-ts/projects/_base/files/__dot__github/workflows/github-pages.yml @@ -13,6 +13,7 @@ jobs: permissions: pages: write id-token: write + actions: read environment: name: github-pages @@ -47,8 +48,8 @@ jobs: - name: SPA routing handling run: cp ./dist/index.html ./dist/404.html - name: Upload build artifact to GitHub Pages - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./dist - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__github/workflows/github-pages.yml b/packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__github/workflows/github-pages.yml index eca49fe08..58df51475 100644 --- a/packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__github/workflows/github-pages.yml +++ b/packages/igx-templates/igx-ts-legacy/projects/_base/files/__dot__github/workflows/github-pages.yml @@ -13,6 +13,7 @@ jobs: permissions: pages: write id-token: write + actions: read environment: name: github-pages @@ -39,8 +40,8 @@ jobs: - name: SPA routing handling run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html - name: Upload build artifact to GitHub Pages - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./dist/${{ env.PROJECT_NAME }}/browser - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/packages/igx-templates/igx-ts-legacy/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml b/packages/igx-templates/igx-ts-legacy/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml index 0c743a5bd..97be9c306 100644 --- a/packages/igx-templates/igx-ts-legacy/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml +++ b/packages/igx-templates/igx-ts-legacy/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml @@ -13,6 +13,7 @@ jobs: permissions: pages: write id-token: write + actions: read environment: name: github-pages @@ -39,8 +40,8 @@ jobs: - name: SPA routing handling run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html - name: Upload build artifact to GitHub Pages - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./dist/${{ env.PROJECT_NAME }}/browser - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/packages/igx-templates/igx-ts/projects/_base/files/__dot__github/workflows/github-pages.yml b/packages/igx-templates/igx-ts/projects/_base/files/__dot__github/workflows/github-pages.yml index eca49fe08..58df51475 100644 --- a/packages/igx-templates/igx-ts/projects/_base/files/__dot__github/workflows/github-pages.yml +++ b/packages/igx-templates/igx-ts/projects/_base/files/__dot__github/workflows/github-pages.yml @@ -13,6 +13,7 @@ jobs: permissions: pages: write id-token: write + actions: read environment: name: github-pages @@ -39,8 +40,8 @@ jobs: - name: SPA routing handling run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html - name: Upload build artifact to GitHub Pages - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./dist/${{ env.PROJECT_NAME }}/browser - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4 diff --git a/packages/igx-templates/igx-ts/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml b/packages/igx-templates/igx-ts/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml index eca49fe08..58df51475 100644 --- a/packages/igx-templates/igx-ts/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml +++ b/packages/igx-templates/igx-ts/projects/_base_with_home/files/__dot__github/workflows/github-pages.yml @@ -13,6 +13,7 @@ jobs: permissions: pages: write id-token: write + actions: read environment: name: github-pages @@ -39,8 +40,8 @@ jobs: - name: SPA routing handling run: cp ./dist/${{ env.PROJECT_NAME }}/browser/index.html ./dist/${{ env.PROJECT_NAME }}/browser/404.html - name: Upload build artifact to GitHub Pages - uses: actions/upload-pages-artifact@v1 + uses: actions/upload-pages-artifact@v3 with: path: ./dist/${{ env.PROJECT_NAME }}/browser - name: Deploy to GitHub Pages - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v4