add drone files
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
alleks 2023-01-23 00:15:25 +03:00
parent 5367cb98aa
commit 0d50488be9
4 changed files with 65 additions and 36 deletions

59
.drone.yml Normal file
View File

@ -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}}

View File

@ -1,38 +1,3 @@
<p align="center"><a href="https://shen-yu.gitee.io" target="_blank" rel="noopener noreferrer"><img width="100" src="logo.png" alt="ayer logo"></a></p>
<h3 align="center">一个干净且优雅的 Hexo 主题</h3>
<p align="center">
<a href="https://travis-ci.org/Shen-Yu/hexo-theme-ayer?branch=master" target="_blank" rel="noopener noreferrer">
<img alt="travis-ci" src="https://travis-ci.org/Shen-Yu/hexo-theme-ayer.svg?branch=master">
</a>
<a href="http://standardjs.com" target="_blank" rel="noopener noreferrer">
<img alt="js-standard-style" src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg">
</a>
<br>
<a href="https://www.npmjs.com/package/hexo-theme-ayer" target="_blank" rel="noopener noreferrer">
<img alt="npm" src="https://img.shields.io/npm/dt/hexo-theme-ayer">
</a>
<a href="https://shen-yu.gitee.io" target="_blank" rel="noopener noreferrer">
<img alt="platform" src="https://img.shields.io/badge/platform-PC--ios--android-ff69b4.svg">
</a>
<a href="https://gitter.im/hexo-theme-ayer/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge" target="_blank" rel="noopener noreferrer">
<img alt="Gitter" src="https://badges.gitter.im/Join%20Chat.svg">
</a>
<br>
<a href="https://www.npmjs.com/package/hexo-theme-ayer" target="_blank" rel="noopener noreferrer">
<img alt="npm version" src="https://img.shields.io/npm/v/hexo-theme-ayer">
</a>
<img alt="language" src="https://img.shields.io/badge/language-ejs--stylus-green.svg">
<a href="https://github.com/Shen-Yu/hexo-theme-ayer/releases" target="_blank" rel="noopener noreferrer">
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/Shen-Yu/hexo-theme-ayer?color=b37feb">
</a>
<a href="https://github.com/Shen-Yu/hexo-theme-ayer/blob/master/LICENSE" target="_blank" rel="noopener noreferrer"><img alt="LICENSE" src="https://img.shields.io/badge/LICENSE-SATA-6ccab8">
</a>
</p>
---
: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,
<b>注:收藏本主题请点右上角 Star谢谢~~ </b>

6
bin/run.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -x
set -e
npm install --production
npm run dev

View File

@ -67,7 +67,6 @@
carefully.
</h3>
<h3>
获取不到该路径的页面呢请检查一下哦可能你还需要仔细阅读
<a href="https://hexo.io/docs/">Hexo</a>
<a href="https://shen-yu.gitee.io/2019/ayer/">Ayer</a> ~
</h3>