1
0
setup-zola/action.yml
2025-05-08 18:36:06 +08:00

37 lines
1016 B
YAML

name: "Setup Zola"
description: "Download and install Zola static site generator"
inputs:
version:
description: "The version of Zola to install"
required: false
default: "0.19.2"
access_key:
description: "s3 Access Key"
required: true
secret_key:
description: "s3 Secret Key"
required: true
endpoint:
description: "S3 endpoint URL"
required: true
bucket:
description: "S3 bucket"
required: true
runs:
using: "composite"
steps:
- name: Install dependencies
shell: bash
run: pip install -r ${{ github.action_path }}/requirements.txt -i https://mirrors.ustc.edu.cn/pypi/simple
- name: Run install script
shell: bash
env:
INPUT_VERSION: ${{ inputs.version }}
INPUT_ACCESS_KEY: ${{ inputs.access_key }}
INPUT_SECRET_KEY: ${{ inputs.secret_key }}
INPUT_ENDPOINT: ${{ inputs.endpoint }}
INPUT_BUCKET: ${{ inputs.bucket }}
run: python3 ${{ github.action_path }}/scripts/install_zola.py