Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cecilapp/github-pages-deploy
A GitHub Action to deploy a static site on GitHub Pages.
https://github.com/cecilapp/github-pages-deploy
action gh-pages github-actions
Last synced: 4 months ago
JSON representation
A GitHub Action to deploy a static site on GitHub Pages.
- Host: GitHub
- URL: https://github.com/cecilapp/github-pages-deploy
- Owner: Cecilapp
- License: mit
- Created: 2019-06-15T23:10:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T22:32:08.000Z (over 1 year ago)
- Last Synced: 2024-04-13T21:55:12.523Z (10 months ago)
- Topics: action, gh-pages, github-actions
- Language: Shell
- Homepage: https://github.com/marketplace/actions/gh-pages-deploy
- Size: 345 KB
- Stars: 41
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Pages deploy
This Action deploys a static site on GitHub Pages.
[](https://github.com/Cecilapp/GitHub-Pages-deploy/actions?query=workflow%3Atest)
## Usage
See [action.yml](action.yml).
```yml
- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
email: [email protected]
build_dir: _site # optional
branch: website # optional
cname: domain.tld # optional
jekyll: no # optional
commit_message: custom message # optional
```### v2 VS v3
> _GitHub Pages deploy_ v3 use the [`secrets.GITHUB_TOKEN`](https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow) instead of a [personal access token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) (PAT), and [inputs parameters](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepswith) instead of environment variables.
> If you want to continue using the previous release (with environment variables) you must set the version: [`Cecilapp/GitHub-Pages-deploy@v2`](https://github.com/marketplace/actions/gh-pages-deploy?version=2.0.1).### Workflow example
```yml
name: GitHub Pages deploy
on:
push:
branches:
- masterjobs:
build-and-deploy:
runs-on: ubuntu-lateststeps:
- name: Checkout
uses: actions/checkout@v3- name: Build
uses: # build your static site- name: Deploy to GitHub Pages
uses: Cecilapp/GitHub-Pages-deploy@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
email: [email protected]
build_dir: _site
```## About _user_ and _organization_ sites
> The default publishing source for user and organization sites is the root of the default branch for the repository.
See [documentation](https://docs.github.com/en/free-pro-team@latest/github/working-with-github-pages/about-github-pages#publishing-sources-for-github-pages-sites).
## License
_GitHub Pages deploy_ is a free software distributed under the terms of the MIT license.
© [Arnaud Ligny](https://arnaudligny.fr)