From 0d50488be9d1d53c7c8126a0e1dd6db5b3316d3a Mon Sep 17 00:00:00 2001 From: alleks Date: Mon, 23 Jan 2023 00:15:25 +0300 Subject: [PATCH] add drone files --- .drone.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 35 ----------------------------- bin/run.sh | 6 +++++ source/404.html | 1 - 4 files changed, 65 insertions(+), 36 deletions(-) create mode 100644 .drone.yml create mode 100644 bin/run.sh diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ffaaf83 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,59 @@ +kind: pipeline +steps: + - name: restore-cache + image: meltwater/drone-cache:dev + environment: + AWS_ACCESS_KEY_ID: + from_secret: aws_acces + AWS_SECRET_ACCESS_KEY: + from_secret: aws_key + pull: true + settings: + debug: false + cache_key: '{{ arch }}_{{ os }}_{{ checksum "package-lock.json" }}' + archive_format: "gzip" + endpoint: storage.yandexcloud.net + restore: true + bucket: drone-cache + region: ru-central1 + mount: 'node_modules' + - name: run-sh + image: node:alpine + commands: + - chmod +x ./bin/run.sh + - ./bin/run.sh + - env + - name: push commit + image: appleboy/drone-git-push + settings: + remote: ssh://git@github.com:22/alkyl1978/hexo-theme-ayer.git + remote_name: github + branch: master + ssh_key: + from_secret: ssh_key + force: true + - name: rebuild-cache + image: meltwater/drone-cache:dev + environment: + AWS_ACCESS_KEY_ID: + from_secret: aws_acces + AWS_SECRET_ACCESS_KEY: + from_secret: aws_key + pull: true + settings: + debug: false + cache_key: '{{ arch }}_{{ os }}_{{ checksum "package-lock.json" }}' + archive_format: "gzip" + endpoint: storage.yandexcloud.net + rebuild: true + bucket: drone-cache + region: ru-central1 + mount: 'node_modules' + - name: telegram + image: appleboy/drone-telegram + settings: + token: + from_secret: token_telegramm + to: + from_secret: to_telegram_user + message: #success {{build.status}} \ No newline at end of file diff --git a/README.md b/README.md index 7acad04..1c51c3d 100644 --- a/README.md +++ b/README.md @@ -1,38 +1,3 @@ -

ayer logo

- -

一个干净且优雅的 Hexo 主题

- -

- - travis-ci - - - js-standard-style - -
- - npm - - - platform - - - Gitter - -
- - npm version - - language - - GitHub repo size - - LICENSE - -

- ---- - :ocean: Ayer is a clean and elegant theme for Hexo, also fast, powerful and responsive. It contains many awesome features, It's perfect for your blog, "Ayer" means "water" in Malaysian and "yesterday" in Spanish. [Create an issue](https://github.com/shen-yu/hexo-theme-ayer/issues/new/choose) if you have any queries or advice during the process of using, 注:收藏本主题请点右上角 Star,谢谢~~ diff --git a/bin/run.sh b/bin/run.sh new file mode 100644 index 0000000..b4607d2 --- /dev/null +++ b/bin/run.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -x +set -e +npm install --production +npm run dev + diff --git a/source/404.html b/source/404.html index 136c84b..f6b76b8 100644 --- a/source/404.html +++ b/source/404.html @@ -67,7 +67,6 @@ carefully.

- 亲,获取不到该路径的页面呢,请检查一下哦,可能你还需要仔细阅读 HexoAyer 的说明文档~