-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
FROM python:3.8 | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,30 @@ | ||
# nikola-action | ||
Github Action for building a Nikola site and deploying to GH Pages | ||
# getnikola/nikola-action: a GitHub Action for building a Nikola site and deploying it to GitHub Pages. | ||
|
||
This GitHub Action can build and deploy a Nikola website. | ||
|
||
# Usage | ||
|
||
1. Create a repository with a Nikola site. | ||
2. Configure [nikola github_deploy](https://getnikola.com/handbook.html#deploying-to-github). It’s best to do your first deployment from your local machine. | ||
3. Ensure the correct branch for deployment is set on GitHub. Refer to [this guide](https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-first-deployment-with-github_token). | ||
4. Create a `.github/workflows/main.yml` file with the Sample Workflow. | ||
|
||
## Sample Workflow | ||
|
||
```yml | ||
on: [push] | ||
|
||
jobs: | ||
nikola_build: | ||
runs-on: ubuntu-latest | ||
name: 'Deploy Nikola to GitHub Pages' | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v2 | ||
- name: Build and Deploy Nikola | ||
uses: getnikola/nikola-action@v1 | ||
``` | ||
## Extras | ||
By default, the action will install the latest stable release of `Nikola[extras]`. If you want to use the bleeding-edge version from `master`, or want to install some extra dependencies, you can provide a `requirements.txt` file in the repository. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# action.yml | ||
name: 'Deploy to GH Pages' | ||
description: 'Build the site using Nikola and deploy to GH Pages' | ||
name: 'Deploy Nikola to GitHub Pages' | ||
description: 'Build the site using Nikola and deploy to GitHub Pages' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
branding: | ||
icon: 'zap' | ||
color: 'orange' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters