This Op will generate & deploy a resume website on Github Pages, using a CTO.ai customized Gatsby template.
❗️ Before running the Op, please set the Github token as a secret, following the instructions below. In order for the Op to automatically retrieve this secret, please make sure you store it under the indicated key name. If the auto-match fails, the Op users will be prompted to select an option from the available list of secrets every time they run the Op.
In order to create a Github repository and update it with the content of the resume website, as well as deploy it on Github Pages, this Op requires an access token generated with the
admin scopes here, following the instructions available here.
Once created, save the token as a secret in your Ops team, by running this command:
ops secrets:set -k GITHUB_ACCESS_TOKEN -v <VALUE>
ops run cto.ai/resume-generator # if running the public official Op ops run resume-generator # if you published or added the Op to your team
/ops run cto.ai/resume-generator # if running the public official Op /ops run resume-generator # if you published or added the Op to your team
This Op will allow you to create and deploy an online resume with ease! It will automatically connect to your Github account, create a public repository for you, scaffold an online resume website inside it, and automatically deploy it to Github Pages using a Github Actions workflow. To continue customizing your online resume, just edit, push, and your changes will be live! Or feel free to fork this repository and extend and customize the Op to your heart's desire!
There are two options for deploying the online resume, as per Github Pages:
<your-github-username>.github.io; if that already exists, the Op will error out
developbranch of the named repository
masterbranch of the named repository
resume; if that already exists, the Op will error out
masterbranch of the named repository
gh-pagesbranch of the named repository
The token you provided is probably incorrect. Go back to Github - Personal access tokens and make sure you select the
repo scope when generating a new token. Then follow the instructions above to update the secret value.
You should be able to see more context in the error message printed out on your screen. Most likely, you already have a repository with that name (
<user>.github.io if you selected the user site option, or
resume if you selected the project site option). Please check your Github account, remove the repository and try running the Op again.
The application the Op generates and pushes into the repository requires building (more details in the section above). The build should be triggered automatically as soon as the Op pushes the code to the repository, with the help of Github Actions. Sometimes, Github Actions fails to detect the definition of the workflow inside the generated repository, or does it too late. The Op will be polling automatically to ensure the workflow is triggered, and then it will wait for it to complete. If this process doesn't happen or takes longer than expected, you might be getting the above mentioned error.
This is what you can do to make sure you get your application deployed in each scenario:
github pageson the left side, under
All workflows, it means Github Actions correctly detected the workflow, but was a bit delayed and the build didn't complete before the Op timed out on polling. As soon as you'll see the workflow complete for the initial commit in the repository, you should be able to access your online resume at the designated URL (see above).
Note that it is also possible that Github has issues; check out https://www.githubstatus.com/ and maybe try again later when everything is green on their side.
If your workflow has successfully completed, then this is likely because Github Pages sometimes has a delay in reflecting the changes. The first time you generate your site, it could take about 10 minutes for it to show up, and possibly longer if it's a user site. If you are pushing subsequent updates, keep in mind that Github Pages are cached with CDN, so sometimes you might need a bit longer to see the changes reflected.
You can see the exact time of Github Pages deployments for your repository by accesing
To ensure your latest version of the site looks as expected, you can get append the short commit hash to the URL, e.g.
That's expected! This Op was designed to keep things simple and only update the very basic information about you (name, email address, social media links), leveraging information found in your Github profile, as well as a few prompts.
If you would like to fill in all the sections of your online resume, you just need to clone the repository the Op created for you, edit the
config.js file with your content, and push to the main branch, hence automatically triggering the workflow and getting your updated site built and deployed.
Alternatively, you are welcome to fork this Op and consider extending it by adding additional prompts, and extending the
customizeApp method. Then publish the Op to your team and run it anytime, or share it with your friends and colleagues! Refer back to the Ops Platform Documentation for help.
If running the Op in the CLI, you should be able to get the error printed out, that should hopefully provide you with more context. If running the Op in Slack, try running it again with the
--debug flag (
/ops run --debug cto.ai/resume-generator) to get more context.
git clone https://github.com/cto-ai/resume-generator # or [email protected]:cto-ai/resume-generator.git
ops run . --build # or `ops run . -b`
ops publish .
See the Contributing Docs for more information.