Skip to content

Commit

Permalink
Merge pull request #5 from eodash/basepath
Browse files Browse the repository at this point in the history
base path test for gh-pages
  • Loading branch information
A-Behairi authored Mar 11, 2024
2 parents 09d599c + 741f460 commit 3ceed13
Show file tree
Hide file tree
Showing 4 changed files with 362 additions and 645 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ on:
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- run: npm i && npm run build
- run: |
npm install
npm run build
cp dist/index.html dist/404.html
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./.eodash/dist/
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
permissions:
contents: write
pages: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -25,7 +26,7 @@ jobs:
if: github.event.action != 'closed'
run: |
npm install
npm run build
npm run build -- --base /${{ github.event.repository.name }}/pr-preview/pr-${{ github.event.number }}/
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
Expand Down
Loading

0 comments on commit 3ceed13

Please sign in to comment.