-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3345 from getpelican/main-default-branch
- Loading branch information
Showing
7 changed files
with
17 additions
and
17 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
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
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
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 |
---|---|---|
|
@@ -89,18 +89,18 @@ Publishing a User Site to GitHub Pages from a Branch | |
---------------------------------------------------- | ||
|
||
To publish a Pelican site in the form of User Pages, you need to *push* the | ||
content of the ``output`` dir generated by Pelican to the ``master`` branch of | ||
content of the ``output`` dir generated by Pelican to the ``main`` branch of | ||
your ``<username>.github.io`` repository on GitHub. | ||
|
||
Again, you can take advantage of ``ghp-import``:: | ||
|
||
$ pelican content -o output -s pelicanconf.py | ||
$ ghp-import output -b gh-pages | ||
$ git push [email protected]:elemoine/elemoine.github.io.git gh-pages:master | ||
$ git push [email protected]:elemoine/elemoine.github.io.git gh-pages:main | ||
|
||
The ``git push`` command pushes the local ``gh-pages`` branch (freshly updated | ||
by the ``ghp-import`` command) to the ``elemoine.github.io`` repository's | ||
``master`` branch on GitHub. | ||
``main`` branch on GitHub. | ||
|
||
.. note:: | ||
|
||
|
@@ -116,18 +116,18 @@ inside the ``Pelican`` folder you can run:: | |
|
||
$ pelican content -o .. -s pelicanconf.py | ||
|
||
Now you can push the whole project ``<username>.github.io`` to the master | ||
Now you can push the whole project ``<username>.github.io`` to the main | ||
branch of your GitHub repository:: | ||
|
||
$ git push origin master | ||
$ git push origin main | ||
|
||
(assuming origin is set to your remote repository). | ||
|
||
Publishing to GitHub Pages Using a Custom GitHub Actions Workflow | ||
----------------------------------------------------------------- | ||
|
||
Pelican-powered sites can be published to GitHub Pages via a `custom workflow | ||
<https://github.com/getpelican/pelican/blob/master/.github/workflows/github_pages.yml>`_. | ||
<https://github.com/getpelican/pelican/blob/main/.github/workflows/github_pages.yml>`_. | ||
To use it: | ||
|
||
1. Enable GitHub Pages in your repo: go to **Settings → Pages** and choose | ||
|
@@ -144,15 +144,15 @@ To use it: | |
workflow_dispatch: | ||
jobs: | ||
deploy: | ||
uses: "getpelican/pelican/.github/workflows/github_pages.yml@master" | ||
uses: "getpelican/pelican/.github/workflows/github_pages.yml@main" | ||
permissions: | ||
contents: "read" | ||
pages: "write" | ||
id-token: "write" | ||
with: | ||
settings: "publishconf.py" | ||
You may want to replace the ``@master`` with the ID of a specific commit in | ||
You may want to replace the ``@main`` with the ID of a specific commit in | ||
this repo in order to pin the version of the reusable workflow that you're using: | ||
``uses: getpelican/pelican/.github/workflows/github_pages.yml@<COMMIT_ID>``. | ||
If you do this you might want to get Dependabot to send you automated pull | ||
|
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