Skip to content

Commit

Permalink
fix: GitHub pages deploy (#666)
Browse files Browse the repository at this point in the history
  • Loading branch information
VaiTon authored Jul 18, 2023
1 parent 866b204 commit ea1b1be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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 ..;
cd ..;

0 comments on commit ea1b1be

Please sign in to comment.