1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-22 09:17:33 +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,7 +1,7 @@
{
"name": "yuika",
"description": "nanao.moe's blog theme",
"version": "3.0.4",
"version": "0.0.0-development",
"engines": {
"ghost-api": "v3"
},
@ -11,7 +11,8 @@
},
"scripts": {
"dev": "gulp dev",
"zip": "gulp zip"
"zip": "gulp zip",
"semantic-release": "semantic-release"
},
"config": {
"posts_per_page": 12,
@ -55,5 +56,12 @@
"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"
}
}