Skip to content

Merge pull request #19 from eodash/5-0-0-alpha-2-18 #15

Merge pull request #19 from eodash/5-0-0-alpha-2-18

Merge pull request #19 from eodash/5-0-0-alpha-2-18 #15

Workflow file for this run

# .github/workflows/deploy.yml
name: Deploy main branch
on:
push:
branches:
- main
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node env
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
- name: Checkout
run: |
npm install
npm run build -- --base /${{ github.event.repository.name }}/
cp .eodash/dist/index.html .eodash/dist/404.html
touch .eodash/dist/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./.eodash/dist/
branch: gh-pages
clean-exclude: pr-preview