mirror of
https://github.com/Damillora/Yuika
synced 2024-11-22 17:27:32 +00:00
feat(theme): add CI
This commit is contained in:
parent
9ee0b604fd
commit
f90c74f879
17
.github/workflows/workflow.yml
vendored
Normal file
17
.github/workflows/workflow.yml
vendored
Normal 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
20
.releaserc.json
Normal 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"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
12
package.json
12
package.json
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "yuika",
|
"name": "yuika",
|
||||||
"description": "nanao.moe's blog theme",
|
"description": "nanao.moe's blog theme",
|
||||||
"version": "3.0.4",
|
"version": "0.0.0-development",
|
||||||
"engines": {
|
"engines": {
|
||||||
"ghost-api": "v3"
|
"ghost-api": "v3"
|
||||||
},
|
},
|
||||||
@ -11,7 +11,8 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "gulp dev",
|
"dev": "gulp dev",
|
||||||
"zip": "gulp zip"
|
"zip": "gulp zip",
|
||||||
|
"semantic-release": "semantic-release"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"posts_per_page": 12,
|
"posts_per_page": 12,
|
||||||
@ -55,5 +56,12 @@
|
|||||||
"gulp-zip": "^5.0.1",
|
"gulp-zip": "^5.0.1",
|
||||||
"postcss": "^8.2.3",
|
"postcss": "^8.2.3",
|
||||||
"typeface-exo-2": "^0.0.72"
|
"typeface-exo-2": "^0.0.72"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/Damillora/Yuika.git"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"semantic-release": "^17.4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user