diff --git a/Dockerfile b/Dockerfile index 21f5a19..9e9416e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12-buster-slim +FROM node:18-buster-slim LABEL version="1.0.3" LABEL repository="https://github.com/sma11black/hexo-action" diff --git a/action.yml b/action.yml index 2f6da01..1292b2b 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: 'Hexo Action' +name: 'Hexo Action 2' description: 'Hexo CI/CD action for automating deployment.' author: 'sma11black' inputs: @@ -31,4 +31,4 @@ runs: - ${{ inputs.commit_msg }} branding: icon: 'package' - color: 'blue' \ No newline at end of file + color: 'blue' diff --git a/entrypoint.sh b/entrypoint.sh index 5d39013..656c2c2 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,10 +12,12 @@ ssh-keyscan -t rsa github.com >> /root/.ssh/known_hosts git config --global user.name "$INPUT_USER_NAME" git config --global user.email "$INPUT_USER_EMAIL" + # install hexo env npm install hexo-cli -g npm install hexo-deployer-git --save + # deployment if [ "$INPUT_COMMIT_MSG" = "none" ] then @@ -30,4 +32,4 @@ else hexo g -d -m "$INPUT_COMMIT_MSG" fi -echo ::set-output name=notify::"Deploy complate." \ No newline at end of file +echo ::set-output name=notify::"Deploy complate."