All Projects → qiwi → semantic-release-gh-pages-plugin

qiwi / semantic-release-gh-pages-plugin

Licence: MIT license
github-pages publishing plugin for semantic-release

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to semantic-release-gh-pages-plugin

community
🌎 REDAXO Community World Map
Stars: ✭ 91 (+435.29%)
Mutual labels:  gh-pages
facelift
Quick github-pages generator
Stars: ✭ 22 (+29.41%)
Mutual labels:  gh-pages
devilbox.org
devilbox website: http://devilbox.org
Stars: ✭ 74 (+335.29%)
Mutual labels:  gh-pages
obsidian-publish-mkdocs
A Template to Publish Obsidian/Foam Notes on Github Pages (uses MkDocs)
Stars: ✭ 219 (+1188.24%)
Mutual labels:  gh-pages
website
Hack for LA's website
Stars: ✭ 133 (+682.35%)
Mutual labels:  gh-pages
matjek
Material theme based on Materialize.css for jekyll sites
Stars: ✭ 94 (+452.94%)
Mutual labels:  gh-pages
dockerfiles
Dockerfiles I use for development
Stars: ✭ 64 (+276.47%)
Mutual labels:  gh-pages
miguelmota.github.com
My Hugo powered blog
Stars: ✭ 34 (+100%)
Mutual labels:  gh-pages
home
Personal portfolio site of Faraz Shaikh.
Stars: ✭ 18 (+5.88%)
Mutual labels:  gh-pages
github-deploy-actions
This action will auto deploy to target branch when it get triggered
Stars: ✭ 24 (+41.18%)
Mutual labels:  gh-pages
react-ui-kit-boilerplate
A minimal React UI Kit boilerplate with Storybook, hot reloading, Styled Components, Typescript and Jest
Stars: ✭ 88 (+417.65%)
Mutual labels:  gh-pages
anitab-org.github.io
AnitaB.org Open Source website has information about our community, including our open source projects, participation in programs, events, and a few contribution guidelines.
Stars: ✭ 141 (+729.41%)
Mutual labels:  gh-pages
food-oasis-la
This is a website with a map of food sources in Los Angeles, and list of resources about food deserts and health, published with Jekyll and GitHub Pages.
Stars: ✭ 24 (+41.18%)
Mutual labels:  gh-pages
GitHub-Pages-deploy
A GitHub Action to deploy a static site on GitHub Pages.
Stars: ✭ 42 (+147.06%)
Mutual labels:  gh-pages
TimeTableManager
Simple react application to create a TimeTable based only on your choice of subjects.
Stars: ✭ 30 (+76.47%)
Mutual labels:  gh-pages
cpptemplate
A template project (library and executable) for C++ projects with cmake, ctest, vcpkg, circleci, and automated document deploymend via doxygen to gh-pages
Stars: ✭ 30 (+76.47%)
Mutual labels:  gh-pages
trailing-slash-guide
Understand and fix your static website trailing slash issues!
Stars: ✭ 255 (+1400%)
Mutual labels:  gh-pages
Documentation
Kodular Documentation
Stars: ✭ 41 (+141.18%)
Mutual labels:  gh-pages
twist
📡 Static and serverless canonical imports for your Go packages
Stars: ✭ 23 (+35.29%)
Mutual labels:  gh-pages
sublog
✍ Build a static blog website from GitHub Issues
Stars: ✭ 20 (+17.65%)
Mutual labels:  gh-pages

@qiwi/semantic-release-gh-pages-plugin

CI Test Coverage Maintainability npm (tag)

gh-pages publishing plugin for semantic-release

Step Description
verifyConditions Verify the presence of the GH_TOKEN set via environment variables.
publish Pushes commit to the documentation branch

Install

# yarn
yarn add @qiwi/semantic-release-gh-pages-plugin --dev
# npm
npm i @qiwi/semantic-release-gh-pages-plugin -D

Usage

Describe plugin configuration in package.json / .releaserc.js

{
  "release": {
    "branch": "master",
    "verifyConditions": [
      "@semantic-release/changelog",
      "@semantic-release/npm",
      "@semantic-release/git",
      "@qiwi/semantic-release-gh-pages-plugin"
    ],
    "publish": [
      "@semantic-release/npm",
      "@semantic-release/github",
      [
        "@qiwi/semantic-release-gh-pages-plugin",
        {
          "msg": "updated",
          "branch": "docs"
        }
      ]
    ]
  }
}

or even shorter if default settings are used:

{
  "release": {
    "branch": "master",
    "plugins": [
      "@semantic-release/release-notes-generator",
      "@semantic-release/changelog",
      "@semantic-release/git",
      "@semantic-release/github",
      "@semantic-release/npm",
      "@qiwi/semantic-release-gh-pages-plugin"
    ]
  }
}

Configuration

Environment variables
Variable Description
GH_TOKEN or GITHUB_TOKEN Required. The token used to authenticate with GitHub.
Options
Option Description Default
msg Commit message template docs updated <%= nextRelease.gitTag %>
src Documentation directory docs

NOTE don't forget to run docs builder (yarn docs, yarn typedoc, etc) as a part of your build step or any other way
dst Destination directory . (root)
branch Docs branch to push gh-pages
branches Optional list of src-to-target branches association. If defined it suppresses branch option. For example, [['master', 'gh-pages'], ['beta', beta-docs]] undefined
repositoryUrl Repository url inherited from .git
enterprise Disables host assertion for GitHub Enterprise domains false
pullTagsBranch Target branch for tags fetching hook. If '' empty string, skips this action globalConfig.branch || master
dotfiles gh-pages dotfiles option false
add gh-pages add option false

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].