Skip to content

Commit

Permalink
🔧 build(action): 配置 github action 自动打包
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Nov 9, 2023
1 parent e161201 commit e078b41
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3

- name: Run script to package files
run: |
chmod +x script/make-zip.sh
./script/make-zip.sh
- name: Release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: "package.zip"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.vscode
*.zip
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# 0.0.4版本更新介绍
1. 修改了获取的周期数。2022 年 1 月 1 日是新年的第一周,1 月 2 日是第二周。如果要按常理一个星期才算一周的话,则 2022 年 1 月 1 日与 2 日依然属于 2021 年的第 53 周,就需要手动调整。
2. “距离 xx 还有 xx 天” 可自行在模板中更改。


# Normal模板使用介绍

## 1.日计划与周总结模板

“日计划” 是和 “周计划” 联动的。即启用日计划模板后自己的每日安排记录上,周总结模板会自动同步每日安排,这样就起到了一个“总结”的作用。


Expand All @@ -13,12 +12,14 @@


## 2.周计划

这个跟日计划周总结是配合使用的。每周伊始,只需在笔记中加载一下“周计划”模板即可创建一个周一到周日的待办事项列表,之后以日期命名创建日计划,到周日时,运用周总结模板总结这一周的事项。

![周计划][4]


## 3.四象限

所谓“四象限”,是把事项按照轻重缓急来分类,因为我有一个名为 “项目” 的笔记,因此正好用四象限合理安排。建议使用这个模板时只记录一些较大的事项,例如工作项目、文章发布、视频制作、摄影安排等等。日常生活和工作中的一些小事则可以写在 “日计划” 中,例如项目中的某一安排、理发、下班聚餐等。

另外还加了一个列出未完成项目的功能,目前只能列出所有笔记中的待办事项,而不能单独指定某个笔记。
Expand All @@ -29,6 +30,7 @@
可以新建一个汇总笔记,然后使用汇总模板,子笔记就是书籍和电影的名字
![请输入图片描述][7]
![][10]

## 5.其他模板
由于是中文命名的,也不难看出所有每个模板是什么用法,可以自行尝试一下。

Expand All @@ -46,3 +48,14 @@
[8]: https://github.com/shawnblues/normal
[9]: https://ifblog.lanzouy.com/i1SyGxpqp1a
[10]:https://github.com/shawnblues/pic/blob/main/%E7%94%B5%E5%BD%B1.png

# CHANGELOG

## v0.1.0 迁移到新的集市系统下

根据新的集市规范进行适应性移植。

## 0.0.4版本更新介绍

1. 修改了获取的周期数。2022 年 1 月 1 日是新年的第一周,1 月 2 日是第二周。如果要按常理一个星期才算一周的话,则 2022 年 1 月 1 日与 2 日依然属于 2021 年的第 53 周,就需要手动调整。
2. “距离 xx 还有 xx 天” 可自行在模板中更改。
7 changes: 7 additions & 0 deletions script/make-zip.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# 搜寻 png md css json 文件
find . -type f \( -name "*.png" -o -name "*.md" -o -name "*.json" \) -print > file-list.txt

# 打包所有文件为 package.zip
zip package.zip -@ < file-list.txt

0 comments on commit e078b41

Please sign in to comment.