|
@@ -6,7 +6,9 @@ inputs:
|
|
|
target-dir:
|
|
target-dir:
|
|
|
description: Directory to deploy the minimized HTML file
|
|
description: Directory to deploy the minimized HTML file
|
|
|
default: "."
|
|
default: "."
|
|
|
- required: true
|
|
|
|
|
|
|
+ file-name:
|
|
|
|
|
+ description: Name of the minimized HTML file
|
|
|
|
|
+ default: "index.html"
|
|
|
|
|
|
|
|
runs:
|
|
runs:
|
|
|
using: "composite"
|
|
using: "composite"
|
|
@@ -27,7 +29,7 @@ runs:
|
|
|
- name: Deploy minimized file
|
|
- name: Deploy minimized file
|
|
|
run: |
|
|
run: |
|
|
|
mkdir -p "${{ inputs.target-dir }}"
|
|
mkdir -p "${{ inputs.target-dir }}"
|
|
|
- cp -uv ${{ github.action_path }}/index.min.html "${{ inputs.target-dir }}/index.html"
|
|
|
|
|
|
|
+ cp -uv ${{ github.action_path }}/index.min.html "${{ inputs.target-dir }}/${{ inputs.file-name }}"
|
|
|
shell: bash
|
|
shell: bash
|
|
|
|
|
|
|
|
branding:
|
|
branding:
|