1
0

update& switch to python version

This commit is contained in:
2025-02-11 15:23:51 +08:00
parent ad28b73245
commit 68db5879c6
6 changed files with 112 additions and 29 deletions

View File

@@ -4,12 +4,33 @@ inputs:
version:
description: "The version of Zola to install"
required: false
default: "0.18.0"
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 ./requirements.txt
- name: Run install script
shell: bash
run: |
chmod +x ${{ github.action_path }}/scripts/install_zola.sh
${{ github.action_path }}/scripts/install_zola.sh ${{ inputs.version }}
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