From ea1b1be5597624054d03ffe1ae8ea53d3b5d0c98 Mon Sep 17 00:00:00 2001 From: VaiTon Date: Tue, 18 Jul 2023 22:40:29 +0200 Subject: [PATCH] fix: GitHub pages deploy (#666) --- .github/workflows/deploy.yml | 11 +++++++---- deploy.sh | 4 ++-- 2 files changed, 9 insertions(+), 6 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 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 ..;