1
0
mirror of https://github.com/Damillora/Yuika synced 2024-12-26 14:13:46 +00:00

feat(theme): add CI

This commit is contained in:
Damillora 2021-04-14 17:27:50 +07:00
parent 9ee0b604fd
commit f90c74f879
3 changed files with 101 additions and 56 deletions

17
.github/workflows/workflow.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: CI
on: push
jobs:
release:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14'
- run: yarn install
- run: yarn zip
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release

20
.releaserc.json Normal file
View File

@ -0,0 +1,20 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/github",
{
"assets": [
{
"path": "dist/yuika.zip",
"label": "Theme zip"
}
]
}
]
]
}

View File

@ -1,59 +1,67 @@
{
"name": "yuika",
"description": "nanao.moe's blog theme",
"version": "3.0.4",
"engines": {
"ghost-api": "v3"
},
"license": "MIT",
"author": {
"email": "developer@damillora.com"
},
"scripts": {
"dev": "gulp dev",
"zip": "gulp zip"
},
"config": {
"posts_per_page": 12,
"image_sizes": {
"xxs": {
"width": 30
},
"xs": {
"width": 100
},
"s": {
"width": 300
},
"m": {
"width": 600
},
"l": {
"width": 1000
},
"xl": {
"width": 1600
},
"xxl": {
"width": 1920
}
}
},
"keywords": [
"ghost-theme",
"yuika"
],
"dependencies": {
"@damillora/shian": "^0.4.0",
"autoprefixer": "^10.2.1",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.2.0",
"gulp-concat": "^2.6.1",
"gulp-livereload": "^4.0.2",
"gulp-postcss": "^9.0.0",
"gulp-uglify": "^3.0.2",
"gulp-zip": "^5.0.1",
"postcss": "^8.2.3",
"typeface-exo-2": "^0.0.72"
"name": "yuika",
"description": "nanao.moe's blog theme",
"version": "0.0.0-development",
"engines": {
"ghost-api": "v3"
},
"license": "MIT",
"author": {
"email": "developer@damillora.com"
},
"scripts": {
"dev": "gulp dev",
"zip": "gulp zip",
"semantic-release": "semantic-release"
},
"config": {
"posts_per_page": 12,
"image_sizes": {
"xxs": {
"width": 30
},
"xs": {
"width": 100
},
"s": {
"width": 300
},
"m": {
"width": 600
},
"l": {
"width": 1000
},
"xl": {
"width": 1600
},
"xxl": {
"width": 1920
}
}
},
"keywords": [
"ghost-theme",
"yuika"
],
"dependencies": {
"@damillora/shian": "^0.4.0",
"autoprefixer": "^10.2.1",
"gulp": "^4.0.2",
"gulp-clean-css": "^4.2.0",
"gulp-concat": "^2.6.1",
"gulp-livereload": "^4.0.2",
"gulp-postcss": "^9.0.0",
"gulp-uglify": "^3.0.2",
"gulp-zip": "^5.0.1",
"postcss": "^8.2.3",
"typeface-exo-2": "^0.0.72"
},
"repository": {
"type": "git",
"url": "https://github.com/Damillora/Yuika.git"
},
"devDependencies": {
"semantic-release": "^17.4.2"
}
}