Step-by-Step Guide to Deploy Your GitHub Pages Using the Jamesives Action

Nothing can be more rewarding than to have fully functional GitHub Pages for your project. This guide aims to provide you a detailed step-by-step instruction on how to deploy your GitHub Pages using the Jamesives Action.

What is the Jamesives Action

The Jamesives Action is a simple integration that allows you to deploy your entire GitHub Pages single repository in just a few short steps. It is a free and easy to use Github action that supports full deployment to personal and multi-repo environments. This feature makes deploying your site much simpler than ever before.

Prerequisites

To deploy your GitHub Pages using the Jamesives Action, you need to first setup a few prerequisites such as:

  • A Github account
  • A repository with a GitHub Pages site
  • A Jamesives access token

Step by Step Guide on How to Deploy Your GitHub Pages Using the Jamesives Action

  1. Log in to your Github account using your credentials.
  2. Go to your Github Repository and make sure your Github Pages site is setup and configured correctly.
  3. Create an access token for your Jamesives account by clicking on Settings -> Developer Settings -> Personal Access Tokens -> Generate Token.
  4. Create a new workflow file using Actions -> Create Workflow. This is an example workflow file structure:
name: Deploy to Production

on:
    push:
        branches:
            - master

jobs:
    deploy-production:
        runs-on: ubuntu-latest

        steps:
            - uses: actions/checkout@v2
            - uses: jamesives/deploy-github-pages-action@master
              with:
                  accessToken: ${{ secrets.JAMESIVES_ACCESS_TOKEN }}

Add your Jamesives Access token as a secret to your workflow by going to Settings -> Secrets -> New Secret -> Enter your Access Token -> Add Secret.

Commit your workflow file and push it to your master branch and your site should be live.

FAQ

What is the Jamesives Action?

The Jamesives Action is a simple integration that allows you to deploy your entire GitHub Pages single repository in just a few short steps. It is a free and easy to use Github action that supports full deployment to personal and multi-repo environments.

How to set up prerequisites to deploy GitHub Pages using the Jamesives Action?

To deploy your GitHub Pages using the Jamesives Action, you need to first setup a few prerequisites such as:

  • A Github account
  • A repository with a GitHub Pages site
  • A Jamesives access token
What is the workflow file necessary for deploying the GitHub Pages?

The workflow file is necessary for executing the actions needed for deploying the GitHub Pages. The structure of the workflow file is as follows:

name: Deploy to Production
  
on:
    push:
        branches:
            - master

jobs:
    deploy-production:
        runs-on: ubuntu-latest

        steps:
            - uses: actions/checkout@v2
            - uses: jamesives/deploy-github-pages-action@master
              with:
                  accessToken: ${{ secrets.JAMESIVES_ACCESS_TOKEN }}
How to add the Jamesives Access Token as a secret in your workflow?

The access token needs to be added as a secret in the workflow. To add the token, go to Settings -> Secrets -> New Secret -> Enter your Access Token -> Add Secret.

What is the command to commit and push the workflow file?

The command to commit and push the workflow file is git add <file> && git commit -m "<message>" && git push origin <branch>.

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Lxadm.com.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.