ghaction-github-pages/action.yml

26 lines
611 B
YAML
Raw Normal View History

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'
2019-09-01 05:48:53 +08:00
icon: 'upload-cloud'
2019-09-01 04:23:41 +08:00
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'