All Projects → appleboy → gh-pages-action

appleboy / gh-pages-action

Licence: MIT License
A GitHub Action to deploy a static site on GitHub Pages.

Programming Languages

shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to gh-pages-action

angular-forum
Forum application built with Angular
Stars: ✭ 52 (+100%)
Mutual labels:  gh-pages, github-actions
github-run-tests-action
mabl Github Actions implementation
Stars: ✭ 39 (+50%)
Mutual labels:  actions, github-actions
ghaction-upx
GitHub Action for UPX, the Ultimate Packer for eXecutables
Stars: ✭ 27 (+3.85%)
Mutual labels:  actions, github-actions
deno-action
Github action for setup Deno
Stars: ✭ 24 (-7.69%)
Mutual labels:  actions, github-actions
build-godot-action
GitHub action that builds a Godot project for multiple platforms
Stars: ✭ 62 (+138.46%)
Mutual labels:  actions, github-actions
action-autotag
Automatically generate a new tag when the manifest file (package.json, Dockerfile, custom file, etc) version changes.
Stars: ✭ 45 (+73.08%)
Mutual labels:  actions, github-actions
action-sync-node-meta
GitHub Action that syncs package.json with the repository metadata.
Stars: ✭ 25 (-3.85%)
Mutual labels:  actions, github-actions
actions-pixela
GitHub Actions for Pixela (a-know/pi) - a-know/pi Setup Action. Linux (Ubuntu), macOS, and Windows are supported.
Stars: ✭ 12 (-53.85%)
Mutual labels:  actions, github-actions
action
📦📊 GitHub Action to reports on the size of your npm package
Stars: ✭ 36 (+38.46%)
Mutual labels:  actions, github-actions
github-act-runner
act as self-hosted runner
Stars: ✭ 68 (+161.54%)
Mutual labels:  actions, github-actions
jekyll-deploy-action
🪂 A Github Action to deploy the Jekyll site conveniently for GitHub Pages.
Stars: ✭ 162 (+523.08%)
Mutual labels:  gh-pages, actions
upx-action
Strips and runs upx on binaries
Stars: ✭ 17 (-34.62%)
Mutual labels:  actions, github-actions
overview
Automate your workflows with GitHub actions for MATLAB.
Stars: ✭ 40 (+53.85%)
Mutual labels:  actions, github-actions
ghaction-import-gpg
GitHub Action to easily import a GPG key
Stars: ✭ 161 (+519.23%)
Mutual labels:  actions, github-actions
gha
🔧 Test your GitHub Actions workflow locally.
Stars: ✭ 53 (+103.85%)
Mutual labels:  actions, github-actions
qodana-action
⚙️ Scan your Java, Kotlin, PHP, Python, JavaScript, TypeScript projects at GitHub with Qodana
Stars: ✭ 112 (+330.77%)
Mutual labels:  actions, github-actions
actions-sms
Send an SMS through GitHub Actions
Stars: ✭ 108 (+315.38%)
Mutual labels:  actions, github-actions
action-label-syncer
GitHub Action to sync GitHub labels in the declarative way
Stars: ✭ 138 (+430.77%)
Mutual labels:  actions, github-actions
bridgecrew-action
This Github Action runs Bridgecrew against an Infrastructure-as-Code repository. Bridgecrew performs static security analysis of Terraform & CloudFormation Infrastructure code.
Stars: ✭ 52 (+100%)
Mutual labels:  actions, github-actions
Android-CICD
This repo demonstrates how to work on CI/CD for Mobile Apps 📱 using Github Actions 💊 + Firebase Distribution 🎉
Stars: ✭ 37 (+42.31%)
Mutual labels:  actions, github-actions

🚀 GitHub Pages for GitHub Actions

GitHub Action for deploying a static site on GitHub Pages.

Deploy the static file to GitHub Page

Usage

Deploying a static site on GitHub Pages.

name: Deploy the static file to GitHub Page
on: [push]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    - name: checkout
      uses: actions/checkout@v1

    - name: deploy docs
      uses: ./
      with:
        username: ${{ secrets.USERNAME }}
        password: ${{ secrets.PASSWORD }}
        remote_url: https://github.com/appleboy/gh-pages-action.git

Please create your own Personal Access Token on GitHub setting page and set the password as access token not your account password.

token

output:

 D Dockerfile
 D LICENSE
 D README.md
 D action.yml
 D docs/index.html
 D entrypoint.sh
?? index.html
+ git add .
+ git commit -m commit 6b0497a3b6f0f975c605c28950dbe15dedf4e8f0
Author: Bo-Yi Wu <***[email protected]>
Date:   Sat Mar 7 20:25:50 2020 +0800

    chore: update

[gh-pages f156e8c] commit 6b0497a3b6f0f975c605c28950dbe15dedf4e8f0 Author: Bo-Yi Wu <***[email protected]> Date:   Sat Mar 7 20:25:50 2020 +0800
 7 files changed, 94 deletions(-)
 delete mode 100644 .github/workflows/ci.yml
 delete mode 100644 Dockerfile
 delete mode 100644 LICENSE
 delete mode 100644 README.md
 delete mode 100644 action.yml
 delete mode 100755 entrypoint.sh
 rename docs/index.html => index.html (100%)
+ git push origin HEAD:gh-pages
To https://github.com/***/gh-pages-action.git
   bd265c2..f156e8c  HEAD -> gh-pages

Input variables

See action.yml for more detailed information.

  • username - github username
  • password - github password or create your personal access token
  • upstream_name - git upstream to target, default is origin
  • target_branch - git branch to target, default is gh-pages
  • temporary_base - temporary directory for pages pull, default is .tmp
  • pages_directory - directory of content to publish, default is docs
  • target_directory - directory of content to sync
  • exclude - exclude files matching PATTERN
  • commit_author - git author name, default is GitHub Action
  • commit_author_email - git author email, default is [email protected]
  • remote_url - git remote url
  • workspace - git clone path

Example

Deploy to target directory.

- name: deploy to target directory
  uses: ./
  with:
    username: ${{ secrets.USERNAME }}
    password: ${{ secrets.PASSWORD }}
    remote_url: https://github.com/appleboy/gh-pages-action.git
    target_directory: 2020

Custom ignore list you don't want to sync.

- name: exclude list
  uses: ./
  with:
    username: ${{ secrets.USERNAME }}
    password: ${{ secrets.PASSWORD }}
    remote_url: https://github.com/appleboy/gh-pages-action.git
    target_directory: ignore
    exclude: ignore.html

custom author email and name:

- name: deploy to target directory
  uses: ./
  with:
    username: ${{ secrets.USERNAME }}
    password: ${{ secrets.PASSWORD }}
    remote_url: https://github.com/appleboy/gh-pages-action.git
    commit_author: foo
    commit_author_email: [email protected]
    target_directory: 2020
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].