Skip to content
play

GitHub Action

Publish To Github

dev0 Latest version

Publish To Github

play

Publish To Github

Push/Update Branch from a directory. Built for compilaiton to creating actions, publishing Github Pages

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Publish To Github

uses: cedricbuild/gh-publish-branch@dev0

Learn more about this action in cedricbuild/gh-publish-branch

Choose a version

Github actions to publish branch to github repository branch. It uses action's access_token to publish/write branch. required params need to be set

on: [push]

jobs:
  publish-directory:
    runs-on: ubuntu-latest
    steps:
      - uses: cedricbuild/gh-publish-branch@main
        with:
            github_repository: ${{ github.repository }}
            branch: gh-pages
            directory: build
            commit_message: "publish directory to branch"