All Projects → maxheld83 → Ghpages

maxheld83 / Ghpages

Licence: mit
Deploy arbitrary static assets through GitHub Actions

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Ghpages

deploy-drone
Deploy Drone CI to enable continuous integration ⚡️ on your product
Stars: ✭ 88 (-47.93%)
Mutual labels:  deployment, continuous-integration, continuous-delivery
Build
Netlify Build runs the build command, Build Plugins and bundles Netlify Functions.
Stars: ✭ 135 (-20.12%)
Mutual labels:  deployment, continuous-integration, continuous-delivery
Rocket
Automated software delivery as fast and easy as possible 🚀
Stars: ✭ 217 (+28.4%)
Mutual labels:  deployment, continuous-integration, continuous-delivery
Gaia
Build powerful pipelines in any programming language.
Stars: ✭ 4,534 (+2582.84%)
Mutual labels:  deployment, continuous-integration, continuous-delivery
build-plugin-template
Template repository to create new Netlify Build plugins.
Stars: ✭ 26 (-84.62%)
Mutual labels:  deployment, continuous-integration, continuous-delivery
Lightning Sites
☁️ Lightning deployment for your ~/Sites folders
Stars: ✭ 8 (-95.27%)
Mutual labels:  deployment, continuous-integration, continuous-delivery
Bbrun
Run Bitbucket Pipelines locally
Stars: ✭ 127 (-24.85%)
Mutual labels:  continuous-integration, continuous-delivery
Pandoc Action Example
using the pandoc document converter on GitHub Actions
Stars: ✭ 131 (-22.49%)
Mutual labels:  continuous-integration, continuous-delivery
Tecli
In a world where everything is Terraform, teams use Terraform Cloud API to manage their workloads. TECLI increases teams productivity by facilitating such interaction and by providing easy commands that can be executed on a terminal or on CI/CD systems.
Stars: ✭ 158 (-6.51%)
Mutual labels:  continuous-integration, continuous-delivery
Tic
Tasks Integrating Continuously: CI-Agnostic Workflow Definitions
Stars: ✭ 135 (-20.12%)
Mutual labels:  deployment, continuous-integration
Actions Netlify
🚀 Netlify deploy from GitHub Actions
Stars: ✭ 138 (-18.34%)
Mutual labels:  static-site, deployment
Terraform Aws Cicd
Terraform Module for CI/CD with AWS Code Pipeline and Code Build
Stars: ✭ 138 (-18.34%)
Mutual labels:  continuous-integration, continuous-delivery
Delivery Pipeline Plugin
Jenkins plugin for pipeline visualisation, perfect for Continuous Delivery
Stars: ✭ 122 (-27.81%)
Mutual labels:  continuous-integration, continuous-delivery
Book Cicd Docker Kubernetes
A book on CI/CD with Docker, Kubernetes and Semaphore
Stars: ✭ 122 (-27.81%)
Mutual labels:  continuous-integration, continuous-delivery
Sshdeploy
A command-line tool that enables quick build and run deployments over SSH.
Stars: ✭ 131 (-22.49%)
Mutual labels:  continuous-integration, continuous-delivery
Jacoco Plugin
Jenkins JaCoCo Plugin
Stars: ✭ 119 (-29.59%)
Mutual labels:  continuous-integration, continuous-delivery
Lastbackend
System for containerized apps management. From build to scaling.
Stars: ✭ 1,536 (+808.88%)
Mutual labels:  continuous-integration, continuous-delivery
Terrahub
Terraform Automation and Orchestration Tool (Open Source)
Stars: ✭ 148 (-12.43%)
Mutual labels:  continuous-integration, continuous-delivery
Fabric8
fabric8 is an open source microservices platform based on Docker, Kubernetes and Jenkins
Stars: ✭ 1,783 (+955.03%)
Mutual labels:  continuous-integration, continuous-delivery
Slashdeploy
GitHub Deployments for Slack
Stars: ✭ 150 (-11.24%)
Mutual labels:  deployment, continuous-delivery

GitHub Action to Deploy Static Assets to GitHub Pages

Actions Status

This action simply lets you deploy arbitrary folders of static content from your workflow's working directory (/github/workspace) to GitHub pages. This works by having your action instance git push your chosen asset folder (BUILD_DIR) to the gh-pages branch of your GitHub repository for the gh-pages branch to be served. If you are running this action inside an organization or user repository (named username/username.github.io) it will deploy to the master branch instead.

Remember that you may also have to adjust your repository settings.

Because this action deploys to separate, "deploy-only" branches, you can not use it if you want to deploy from a repo subdirectory such as docs/. In those cases you really don't need a GitHub Action, because you would be committing the build artifacts yourself. For details see the GitHub Pages Documentation.

There are already great GitHub actions to use static site generators and then deploy to GitHub Pages (for jekyll, jekyll, zola and surely many more to come). This action isn't that, though I've borrowed much of the git action from these works.

This action will not build anything, it just deploys.

Inputs

None.

Outputs

None.

Secrets

Deployment to GitHub pages happens by git pushing to the gh-pages (or master) branch. To authorise this, the GitHub action needs a secret. For now, somewhat confusingly, the GITHUB_TOKEN available for every repo does suffice to push to gh-pages, but does not suffice to trigger a page build on GitHub, or even propagate the content to the GitHub content-delivery network.

You therefore have to create a custom Personal Access Token (PAT) much like you'd do for external services (say, Travis). This token must be created with repo permissions in order to deploy to Github Pages. You then have to paste this token into the GitHub UI as a secret under the name GH_PAT (repository settings/secrets) and call it in the action as in the below.

I've asked GitHub to streamline this process. The discussion is documented here.

Environment Variables

Just BUILD_DIR, the build directory relative to your repository root. You can also pass . if you want to push your repository root.

Example Usage

name: Deployment

"on":
  - push
  - pull_request

jobs:
  deploy_ghpages:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/[email protected]
      - run: echo $GITHUB_SHA >> public/index.html
      - uses: maxheld83/[email protected]
        env:
          BUILD_DIR: public/
          GH_PAT: ${{ secrets.GH_PAT }}
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].