From fd0441963ad2deb9298583248a9faca20ec45d60 Mon Sep 17 00:00:00 2001 From: VaiTon Date: Sun, 9 Jul 2023 15:54:06 +0200 Subject: [PATCH 1/2] Fix build.sh script --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 95490b361..a85da020f 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,10 +1,10 @@ #!/bin/bash -cd build; +cd dist; cp index.html 404.html; cp index.html insights.html; cp index.html questions.html; cp index.html eco-score.html; cp index.html settings.html; cp index.html logos.html; -cd ..; \ No newline at end of file +cd ..; From 1a06d0b4f8a5e0977b8c236786fe326faf8e712f Mon Sep 17 00:00:00 2001 From: VaiTon Date: Sun, 9 Jul 2023 16:04:15 +0200 Subject: [PATCH 2/2] Use actions/deploy-pages@v2 --- .github/workflows/deploy.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cb13d2f45..ff5005b78 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,9 +36,12 @@ jobs: - name: Deploy run: yarn deploy + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: 'dist' + - name: Deploy to github pages 🚀 if: github.ref == 'refs/heads/master' - uses: JamesIves/github-pages-deploy-action@v4.4.2 - with: - branch: gh-pages # The branch the action should deploy to. - folder: build # The folder the action should deploy. + id: deployment + uses: actions/deploy-pages@v2