How to deploy Publish site to GitHub Pages - swift

I'm developing a static site using John Sundell's Publish framework. I've got the site mostly working, and I want to deploy it to my GitHub Pages repo. Publish includes a publishing step called .deploy(using: .gitHub("githubusername/githubusername.github.io", useSSH: false)) (to be clear, I did use my actual username). However, when I ran it the first time I received a pop-up authentication window, which I entered and it said incorrect password. Since then, whenever I run it, it just shows an error and doesn't offer any password window:
publish deploy
Fatal error: Error raised at top level: Publish encountered an error:
[step] Deploy using Git (https://github.com/githubusername/githubusername.github.io.git)
[path] GitDeploy
[info] Failed to create folder: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/ErrorType.swift, line 200
/bin/bash: line 1: 9577 Illegal instruction: 4 swift run RyanBudishSite --deploy
❌ ShellOut encountered an error
Status code: 132
Message: "Fatal error: Error raised at top level: Publish encountered an error:
[step] Deploy using Git (https://github.com/githubusername/githubusername.github.io.git)
[path] GitDeploy
[info] Failed to create folder: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/ErrorType.swift, line 200
/bin/bash: line 1: 9577 Illegal instruction: 4 swift run RyanBudishSite --deploy"
Output: ""
Does anyone have any experience getting Publish to deploy to GitHub Pages? Any tips/ideas/suggestions would be very useful

I have deployed my site in GutHub Pages using the built in .gitHub publishing step.
To deploy to GitHub Pages, Publish clones your githubusername/githubusername.github.io project into <YourProjcet>/.publish/GitDeploy. I am new to Swift and Publish, but by the looks of your error, it was unable to create the GitDeploy folder or clone your pages project there.
Run deploy once, after it fails go to the above location and see what is wrong. If there's some issue with pushing/fetching the GitHub Pages repo, resolve it manually and try running the publish deploy again.
If GitDeploy folder is not created, maybe creating one manually will fix it.

Related

why is my GitHub pages not working after installing vite?

Working on a 3d globe using threejs, I have the deployment running on GitHub pages, I had to install vite.js to facilitate the use of importing .glsl files for 3d stuff, after installing vite and trying to run GitHub pages I get the error "Canceling since a higher priority waiting request for 'pages build and deployment # main' exists" and every git push I have made after that has resulted in the error "docker pull failed with exit code 1" what does this mean?
the first screenshot is the list of failed deployments to GitHub pages.
the middle screenshot is the initial error.
the last screenshot is the error I've been getting ever since the initial one.
I have even made a new repository and still getting the same error which makes me think not has nothing to do with vite but something is wrong with GitHub.
Any advice would be appreciated.

SageMaker MLOps Project Using Third-party Git Repos - Error in building

I'm doing some tutorials using the MLOps templates, to create a Sagemaker Project to build, train and deploy with third-party Git repositories using CodePipeline. Following this documentation: https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-projects-walkthrough-3rdgit.html#sagemaker-proejcts-walkthrough-create-3rdgit.
I have created the connection in CodeCommit settings, and selected my two repositories created in Github, one for modelbuild and one for modeldeploy. When creating the project, I put the urls from github, the name of the repos (in my case, it is organization/modelbuild-repo) and I use the arn of the connection.
However, in the building process, in the seedcodecheckin, I get the following errors:
[GitRepositorySeedCodeBootStrapper.main()] ERROR GitRepositorySeedCodeBootStrapper - Seedcode checkin failed: Invalid remote: origin
I also get the following exceptions:
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: https://codestar-connections.eu-west-1.amazonaws.com/git-http/XXXXXXXXXXX/eu-west-1/ff5bf7e3-bee9-4dad-a63d-0374c4a96297/ORGANIZATION/sagemaker-tutorial-3-modelbuild.git: https://codestar-connections.eu-west-1.amazonaws.com/git-http/XXXXXXXXXXX/eu-west-1/ff5bf7e3-bee9-4dad-a63d-0374c4a96297/ORGANIZATION/sagemaker-tutorial-3-modelbuild.git/info/refs?service=git-upload-pack not found: Not Found
These errors are from the build logs from git-seedcodecheckin.
Which I believe it has to do with trying to populate the repository with the modelbuild code.
Anyone has an idea what might be the error?
I have seen similar questions to this, related to policies and the need for them, but I beleive I have the correct ones attached.
It looks like the repository either does not exist or you are not passing in the right name.
You can follow the guidelines in this blog - https://aws.amazon.com/blogs/machine-learning/create-amazon-sagemaker-projects-using-third-party-source-control-and-jenkins/

GitHub pages build Error: No uploaded artifact was found! Please check if there are any errors at build step

I am trying to deploy a github.io app and it has been working so far, but now I am having an issue with build and deployment. I can build the files without any issue on local server, but when I try to publish it on github server by pushing it, it throws a build and deployment error saying:
Error: Error: No uploaded artifact was found! Please check if there are any errors at build step.
I tried to remove the repo and create it again, but still get the same error.
I am very new to this and I have no idea what to do. I have seen some references to empty submodules after cloning, but I didn't clone it.
Any suggestions what else I can check?

Failed to construct 'URL': Invalid URL (getting this error trying to deploy my portfolio site to Netlify)

Trying to deploy my React portfolio site to Netlify. Installed Netlify with npm i netlify-cli.
Then, ran npx netlify init to get logged into Netlify and answer some of the setup questions within the terminal.
Next, the terminal question is now: "Netlify CLI needs access to your GitHub account to configure Webhooks and Deploy Keys. What would you like to do?"
When I select "Authorize with GitHub through app.netlify.com", I'm taken to a "Sign in to Netlify CLI" page on Netlify's website and the following error is on the page so I cannot move forward with the process:
Failed to construct 'URL': Invalid URL
Here is a picture of the error, for clarity.
Another piece of info is that earlier on I ran a build command which built me what I believe is a production build. The stuff from that is located in a build folder in my project directory.
Anyone know why I'm getting this error or a good way to get around it?

Downloaded Jekyll website from Github and it doesnt serve Locally

I created a website with Jekyll and uploaded it to github. This allowed me to host my site for free (It's mostly just a template at the moment) repo here:
https://github.com/themallardcomplexion/themallardcomplexion.github.io
It serves fine online with the domain name but I tried to download it and serve it locally but get the following errors:
Configuration file: none
Source: C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master
Destination: C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master/_site
Incremental build: disabled. Enable with --incremental
Generating...
Build Warning: Layout 'post' requested in themallardcomplexion.github.io-master/_posts/2019-01-19-welcome-to-jekyll.markdown does not exist.
Build Warning: Layout 'default' requested in themallardcomplexion.github.io-master/404.html does not exist.
Build Warning: Layout 'page' requested in themallardcomplexion.github.io-master/about.md does not exist.
Build Warning: Layout 'home' requested in themallardcomplexion.github.io-master/index.md does not exist.
done in 0.587 seconds.
Auto-regeneration: enabled for 'C:/Users/isw/Desktop/Taijisoce/themallardcomplexion.github.io-master'
Server address: http://127.0.0.1:4000
Server running... press ctrl-c to stop.
It serves with no formatting and just shows a plain text site.... any ideas?
I have tried downloading the code via the Github app and downloading it as zip
The errors are coming from Jekyll looking for layouts for the pages you built. You need to make a /_layouts/ folder with all the layouts your site needs:
/_layouts/
|
|--default.html
|
|--post.html
|
|--page.html
|
These all correspond to the build warnings that are coming up. See the Jekyll tutorials and docs for more details.
Also, instead of downloading the repo, it's better to clone it. That way you can work on changes locally then push changes to GitHub. Here's the link to docs for cloning a repo