WolfieKnee
WolfieKneeā€¢9mo ago

Deploying Lume to github pages

I'm totaly new to this, but have been following instructions to build a site with lume. It works locally through VSCode on localhost, and now I want to deploy on github pages. I've committed the changes to the repo, and created an action exactly give here: https://lume.land/docs/advanced/deployment/#github-pages but it fails on the deploy action. I'm guessing that I need to customise a parameter, but I can't find any guidance on this. Can anyone advise please? Error: Creating Pages deployment failed Error: HttpError: Invalid environment node id
Deployment
How to deploy a site built with Lume.
2 Replies
Deno AI Helper
Deno AI Helperā€¢9mo ago
I'm sorry for the trouble you're experiencing. However, the documentation I have access to doesn't provide specific guidance on deploying Lume to GitHub Pages. It mainly focuses on deploying projects to Deno Deploy using GitHub Actions. The error message you're seeing seems to be related to GitHub Pages deployment, which is outside the scope of the Deno platform. I would recommend checking the GitHub Pages documentation or reaching out to their support for more specific help. In the meantime, if you're interested in deploying your Lume site to Deno Deploy, the documentation provides a detailed guide on how to do this. It involves setting up a GitHub Actions workflow file and configuring it to build your site and upload it to Deno Deploy. If you're interested in this, I'd be happy to guide you through the process. šŸ¦•
WolfieKnee
WolfieKneeā€¢9mo ago
OK - I do now have this working, by updating permissions to: permissions: contents: write and deploy action to: name: Deploy to GitHub Pages id: deployment uses: crazy-max/ghaction-github-pages@v2.0.1 with: build_dir: _site env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Iā€™m not certain this is ā€˜correctā€™ but I wonder if the documentation page might need updating... To close the loop on this thread, I posted in the Lume channel and was advise that I needed to change the repo pages settings to deploy from a workflow no a branch. Everything is now running boilerplate code.