🚀 Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
force
. If set to false
the action will no longer force push, instead attempting 3 times to resolve rejected commits when making parallel/subsequent deployments. In a future version false
will be set as the default. Massive thanks to @rossjrw for this feature addition.14
to 16
.JamesIves/github-pages-deploy-action@v4
if you'd like to always have the most cutting edge changes outside of using the release branch directly.v
to be consistent with other officially provided actions by GitHub. You can use JamesIves/[email protected]
for instance. Dependabot should pick up this change automatically.git mv
command prior to the workflow running. (#895)single-commit
to fail when using repository-name
if the branch name was equal from the origin to destination. (#665)Full Changelog: https://github.com/JamesIves/github-pages-deploy-action/compare/4.1.7...4.1.8
npm ci
instead of npm install
in examples by @bananer in https://github.com/JamesIves/github-pages-deploy-action/pull/934
git-config-email
option again. If you wish to omit this field entirely you must now provide <>
in the field instead of an empty string. This is due to the fact that GitHub Actions defaults all undefined fields to an empty string, causing the default behavior to not work when you don't provide a git-config-email
parameter at all. You can find an example of this below.name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
git-config-email: <>
Full Changelog: https://github.com/JamesIves/github-pages-deploy-action/compare/4.1.6...4.1.7