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