This Action is archived. I recommend using Custom GitHub Actions workflows to deploy to GitHub pages. Here is a code example of a migration off this GitHub action.
The most blazingest action to deploy your GitHub pages website
This GitHub action uses JavaScript for maximum speed .
Using a JavaScript action simplifies the action code and executes faster than a Docker container action.
.github/workflows/deploy.yml
to your project.GH_PAT
Here is an example deploy.yml
file:
name: Blazing fast GitHub Pages deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: npm install, test and build
run: |
npm install
npm run test
npm run build
- name: Deploy site to gh-pages branch
uses: alex-page/[email protected]
with:
repo-token: ${{ secrets.GH_PAT }}
If you want a more custom experience you can add these values. For more detailed explanation of the workflow file, check out the GitHub documentation.
Setting | Description | Default value | Required |
---|---|---|---|
repo-token |
The personal access token | ${{ secrets.GH_PAT }} |
true |
site-directory |
The site directory | _site |
false |
commit-message |
The commit message for the branch | Deployed using Blazing fast GitHub Pages deploy action | false |
deploy-branch |
The branch to deploy the built website to | gh-pages |
false |
"could not read Username for 'https://github.com': No such device or address"
This is due to the deployed site folder containing a .git
directory. It is recommended to build the site in a new folder for deployment.