Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luisenmarroquin/gh-pages-publish

GitHub Action to publish a folder to GitHub Pages using an SSH key
https://github.com/luisenmarroquin/gh-pages-publish

actions cd ci ci-cd github github-actions javascript js macos marketplace node node-js secrets ssh ssh-key ts typescript ubuntu windows workflow

Last synced: 11 days ago
JSON representation

GitHub Action to publish a folder to GitHub Pages using an SSH key

Awesome Lists containing this project

README

        

# GitHub Pages Publish - GitHub Action

[![Fail](https://github.com/LuisEnMarroquin/gh-pages-publish/actions/workflows/windows.yml/badge.svg)](https://github.com/LuisEnMarroquin)
[![Fail](https://github.com/LuisEnMarroquin/gh-pages-publish/actions/workflows/macos.yml/badge.svg)](https://github.com/LuisEnMarroquin)
[![Fail](https://github.com/LuisEnMarroquin/gh-pages-publish/actions/workflows/ubuntu.yml/badge.svg)](https://github.com/LuisEnMarroquin)

This action sends your project build folder to a new/existing branch, example **gh-pages**

## Example usage

```yml
name: Ubuntu

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: LuisEnMarroquin/[email protected]
with:
FOLDER: dist
SSHKEY: ${{ secrets.SSH }}
```

## Inputs

| Key | Value Information | Required |
| -------- | ----------------------------------------------------------------- | -------- |
| `BRANCH` | The branch where the project will be deployed, default `gh-pages` | **No** |
| `FOLDER` | The folder where your files that will be deployed are located | **Yes** |
| `SSHKEY` | Your GitHub SSH access key, this comes from GitHub Secrets | **Yes** |

Your repo secrets are at: `https://github.com///settings/secrets`

## Outputs

| Key | Value Information |
| -------- | ------------------------------------------- |
| `TIMING` | The time when the action finished execution |