Skip to content

Workflow appears successful but github.io returns blank page #647

Discussion options

You must be logged in to vote

I solved my original issue. Here are my changes below. You can also look at the sample repo.

frontend-build.yaml

name: Build and Deploy
on: [push]
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2.3.1

      - name: Install and Build
        run: |
          npm install
          npm run build:ghp

      - name: Deploy
        uses: JamesIves/github-pages-deploy-action@4.1.0
        with:
          branch: gh-pages # The branch the action should deploy to.
          folder: dist/ghpages # The folder the action should deploy.

Build script in package.json

"build:ghp": "ng build --prod --base-href /ghpages/",

Set build …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@johnpankowicz
Comment options

@johnpankowicz
Comment options

@johnpankowicz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by johnpankowicz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants