update& switch to python version
This commit is contained in:
29
action.yml
29
action.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user