Skip to content

Add Github Pages deployment#1

Open
jborichevskiy wants to merge 3 commits intoshahruz:mainfrom
jborichevskiy:add-gh-pages
Open

Add Github Pages deployment#1
jborichevskiy wants to merge 3 commits intoshahruz:mainfrom
jborichevskiy:add-gh-pages

Conversation

@jborichevskiy
Copy link

@jborichevskiy jborichevskiy commented Aug 7, 2021

An experiment - I was able to configure Github Actions to deploy to Pages automatically.

Seems to work so far, but some caveats:

  • repo must be public for Pages to be enabled
  • no per-branch feature deploys as far as I can tell
  • package-lock.json needs to be committed as a build artifact
  • a new key pair needs to be added to the host repo.
    • public key to Settings > Deploy Keys
    • private key to Settings > Secrets

As a demo: https://jborichevskiy.github.io/next-template/

Based on vercel/next.js/examples/gh-pages and this post.

Figured this might be helpful for a future project!

@jborichevskiy jborichevskiy changed the title Add Github Pages Add Github Pages deployment Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant