2019-09-01 04:23:41 +08:00
|
|
|
# https://help.github.com/en/articles/metadata-syntax-for-github-actions
|
|
|
|
name: 'GitHub Pages'
|
|
|
|
description: 'GitHub Action for deploying GitHub Pages'
|
|
|
|
author: 'crazy-max'
|
|
|
|
branding:
|
|
|
|
color: 'green'
|
|
|
|
icon: 'git-branch'
|
|
|
|
|
|
|
|
inputs:
|
2019-09-01 05:28:00 +08:00
|
|
|
target_branch:
|
|
|
|
description: 'Git branch where assets will be deployed'
|
|
|
|
required: false
|
|
|
|
default: 'gh-pages'
|
2019-09-01 04:23:41 +08:00
|
|
|
build_dir:
|
|
|
|
description: 'Path to build directory to deploy'
|
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: 'docker'
|
|
|
|
image: 'Dockerfile'
|
|
|
|
args:
|
2019-09-01 05:28:00 +08:00
|
|
|
- ${{ inputs.target_branch }}
|
2019-09-01 04:23:41 +08:00
|
|
|
- ${{ inputs.build_dir }}
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: 'As provided by GitHub Actions'
|