Skip to content

Commit

Permalink
Merge pull request #1078 from terwer/dev
Browse files Browse the repository at this point in the history
#1053 新增发布平台 telegra.ph
  • Loading branch information
terwer committed Mar 4, 2024
2 parents 3f96038 + 931bbe9 commit 19cb4dc
Show file tree
Hide file tree
Showing 8 changed files with 182 additions and 47 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/release-please.yml
Expand Up @@ -11,6 +11,7 @@ jobs:
# Create release
- name: Create release
uses: google-github-actions/release-please-action@v4
id: release
with:
# this assumes that you have created a personal access token
# (PAT) and configured it as a GitHub action secret named
Expand All @@ -23,68 +24,68 @@ jobs:

# Checkout
- name: Checkout
if: ${{ steps.release.outputs.release_created }}
uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}

# Install Node.js
- name: Install Node.js
if: ${{ steps.release.outputs.release_created }}
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}

# Install pnpm
- name: Install pnpm
if: ${{ steps.release.outputs.release_created }}
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 8
run_install: false
if: ${{ steps.release.outputs.release_created }}

# Get pnpm store directory
- name: Get pnpm store directory
if: ${{ steps.release.outputs.release_created }}
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
if: ${{ steps.release.outputs.release_created }}

# Setup pnpm cache
- name: Setup pnpm cache
if: ${{ steps.release.outputs.release_created }}
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
if: ${{ steps.release.outputs.release_created }}

# Install dependencies
- name: Install dependencies
if: ${{ steps.release.outputs.release_created }}
run: pnpm install
if: ${{ steps.release.outputs.release_created }}

# Prepare new version
# https://github.com/google-github-actions/release-please-action#outputs
- name: Prepare new version
if: ${{ steps.release.outputs.release_created }}
run: |
pnpm prepareRelease
if: ${{ steps.release.outputs.release_created }}

# Build for production and Archive package
- name: Build for production
if: ${{ steps.release.outputs.release_created }}
run: pnpm package
if: ${{ steps.release.outputs.release_created }}

# Upload package to release
# https://github.com/philips-labs/terraform-aws-github-runner/blob/main/.github/workflows/release.yml#L46
- name: Upload package.zip to the release
if: ${{ steps.release.outputs.releases_created }}
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
for f in $(find ./build -name '*.zip'); do
gh release upload ${{ steps.release.outputs.tag_name }} $f
done
done
if: ${{ steps.release.outputs.releases_created }}
88 changes: 69 additions & 19 deletions README.md
Expand Up @@ -8,25 +8,74 @@ Publish articles from siyuan-note to platforms like Yuque etc. `Free` and `open

If you're interested in the paid professional version, please check the paied ➡️ [Publishing Tool Professional Edition](https://github.com/terwer/siyuan-plugin-publisher-pro)

> Recent update: 🎉 Introducing Publisher Version `1.19.0`
- Version `1.19.1` mainly fixes the following issues:
- Text inside code blocks should not be incorrectly escaped.
- Version `1.19.1` primarily includes the following underlying changes:
- Upgrade element-plus to 2.5.5+.
- Upgrade vue to 3.4.19+.
- Upgrade siyuan sdk to 0.9.3.
- Version `1.19.0` primarily resolves the following issues:
- Rectifies the parsing error in Zhihu's formula rendering caused by escaped text.
- Version `1.19.0` includes significant underlying changes:
- Upgrades Vite to Vite5+
- Upgrades Release-please to version 4+
- Upgrades Vue to version 3.4.5+
- Ahem, in addition, the author secretly developed an import feature after version `1.14.0`. You can easily import predefined platforms through the `Settings` -> `Publish Settings` -> `Import Predefined Platforms` function 😄

> [Click here](https://blog.terwer.space/s/20230810132040-nn4q7vs) to access the latest documentation.
**For any further inquiries or suggestions, please join QQ Group `895063267` for discussion**
> The latest Publish Tool version `1.20.0` is released🎉, potentially one of the most revolutionary iterations since the inception of first releases👀.
- Notable inclusions within version `1.20.0` comprise the introduction of additional publishing platforms, an initial foray into supporting the docker version, along with enhancements tailored to optimize user interactions.

- The prominent features integrated into `1.20.0` encompass:

- #958 #1009 Experimental support for the docker edition of siyuan-note, marking a preliminary step towards its implementation. Should anomalies surface during deployment, the extension welcomes the addition of GitHub issues for resolution.
- Progress in Docker compatibility:
- [X] telegra.ph
- #1053 Introduction of the publishing platform telegra.ph
- **Please note: Unavailability of CORS proxy configuration will render the functionality inactive!!! Furthermore, accessing article previews mandates circumventing restrictions via appropriate means.**
- For discussions on CORS proxy complications or other inquiries, feel free to engage in group discussions or reach out to the author at youweics@163.com
- #1054 Addition of article management capabilities
- Renamed article management as Dashboard. Feedback regarding nomenclature adjustments can be deliberated via issues, facilitating responsive modifications by the author.
- Facilitation of displaying all platform publication icons
- Provision for exhibiting the count of publishing platforms
- Integration of filters for curated published articles

- `1.20.0` predominantly refines the following areas of focus:

- Incorporation of development documentation alongside a preview of forthcoming version agendas
- Enhanced Plugin Store experience
- Streamlined import processes, now accommodating customized imports
- Exquisitely refined iteration of `sy-post-publisher widget

- Furthermore, post the `1.14.0` version, the author discretely developed an import function. Users can swiftly import built-in platforms through `Settings` -> `Publish Settings` -> `Import Predefined Platforms` feature 😄

> For further details, kindly [click here](https://blog.terwer.space/s/20230810132040-nn4q7vs) to peruse the latest help documentation.
**Should you encounter any issues or wish to submit suggestions, feel free to join QQ group `895063267` for discussions.**

## Version Preview

### 1.20.1-preview – As of Q1 2024

- Expansion of telegra.ph support for image uploads
- Reference: https://www.npmjs.com/package/telegraph-uploader
- Rectification of scenarios entailing repetitive image uploads across select platforms
- Resolution of formatting discrepancies within WeChat public accounts
- #990 Rectification of irregular display issues while posting to Jian Shu
- #989 Failure in posting certain articles to Notion
- Rectifying error scenarios during posting to WeChat public accounts in certain contexts
- #948 #905 Corrections addressing halo platform-related concerns
- Addressing vuepress2 related issues

### 1.21.0-preview – As of Q1 2024

- Inclusion of support for BiliBili and Xiaohongshu platforms

### 1.22.0-preview – As of Q2 2024

- Embracing compatibility for Evernote and Antora (including GitHub and GitLab)

### 1.23.0-preview – As of Q2 2024

- Enabling support for Docsify (inclusive of GitHub and GitLab) and Douban

### 1.24.0-preview – As of Q2 2024

- Integration with flowus platform

### 1.25.0-preview – As of Q2 2024

- Extending support to Xlog, mdnice, and zola platforms

### 1.26.0-preview – As of Q3 2024

- Collaborative interactions with #956 and OceanPress

## Update history

Expand Down Expand Up @@ -78,6 +127,7 @@ Names not listed in order
- [ ] Xlog - TODO
- [ ] Mdnice - TODO
- [ ] Flowus - TODO
- [X] telegra.ph

## Core Features

Expand Down
62 changes: 54 additions & 8 deletions README_zh_CN.md
Expand Up @@ -8,25 +8,70 @@

如果您对 [增值功能](https://github.com/terwer/siyuan-plugin-publisher/issues/846) 感兴趣,请移步 ➡️ 收费的 [发布工具专业版](https://github.com/terwer/siyuan-plugin-publisher-pro)

> 最近的新版本:🎉 发布工具新版本 `1.20.0` 发布
> 最近的新版本:🎉 发布工具新版本 `1.20.0` 发布,可能是插件发布以来,革命性变更最大的版本之一👀
- `1.20.0` 新增部分发布平台,初步支持 docker 版本,同时修复了一些已知问题
- `1.20.0` 新增部分发布平台,初步支持 docker 版本,同时对用户的使用体验进行了优化
- `1.20.0` 主要新增以下特性:
- #958 #1009 支持 docker 版本的思源笔记<sup>实验性</sup>
- 此版本初步支持了 docker 版本的思源笔记,如果某些情况下发布异常,欢迎GitHub 新增 issue 反馈。
- docker 版本适配进度
- [X] telegra.ph
- #1053 新增发布平台 telegra.ph
- **注意:此功能需要科学上网,请自行解决科学上网的问题。**
- #1054 新增文章管理功能:目前是简单版,后续会继续优化
- **注意:如果未配置 CORS 代理,功能将不可用!!!,而且文章预览需要科学上网,请自行解决科学上网的问题。**
- CORS 代理问题可加群讨论或者私聊作者 youweics@163.com
- #1054 新增文章管理功能<sup>new</sup>
- 文章管理重命名为仪表盘。关于名称,可在 issue 讨论,作者会根据反馈进行调整。
- `1.20.0` 主要修复以下缺陷:
- #990 修复发布到简书时部分格式显示不正常的问题
- 支持显示所有平台发布图标
- 支持显示发布平台数量
- 支持筛选已发布文章
- `1.20.0` 主要优化以下方面:
- 新增开发文档
- 新增开发文档,新增下版本开发计划预告
- 优化插件商店体验<sup>new</sup>
- 优化导入体验,现在支持自定义导入了<sup>实验性</sup>
- 深度优化挂件版本
- 咳咳,另外,在 `1.14.0` 版本之后,作者还悄悄开发了导入功能。您可以使用 `设置` -> `发布设置` -> `导入预定义平台` 功能快速导入内置平台 😄

> [猛击这里](https://blog.terwer.space/s/20230810132040-nn4q7vs),查看最新帮助文档。
**遇到其他问题或者需求建议?请加 QQ 群 `895063267` 讨论。或者查看下面的在线文档:**
**遇到其他问题或者需求建议?请加 QQ 群 `895063267` 讨论。**

## 版本预告

### 1.20.1-preview - 截止到 2024 年 Q1

- telegra.ph 支持上传图片
- 参考 https://www.npmjs.com/package/telegraph-uploader
- 解决部分平台在某些场景下重复上传图片的问题
- 修复微信公众号排版问题
- #990 修复发布到简书时部分格式显示不正常的问题
- #989 部分文章发布到 Notion 失败
- 修复部分场景发布到微信公众号报错的问题
- #948 #905 halo 平台相关问题修复
- vuepress2 相关问题

### 1.21.0-preview - 截止到 2024 年 Q1

- 支持 B 站、小红书

### 1.22.0-preview - 截止到 2024 年 Q2

- 支持 Evernote、Antora(包括 GitHub 和 gitlab)

### 1.23.0-preview - 截止到 2024 年 Q2

- 支持 Docsify(包括 GitHub 和 gitlab)、Douban

### 1.24.0-preview - 截止到 2024 年 Q2

- 支持 flowus

### 1.25.0-preview - 截止到 2024 年 Q2

- 支持 Xlog、mdnice、zola

### 1.26.0-preview - 截止到 2024 年 Q3

- #956 和 OceanPress 联动

## 更新历史

Expand Down Expand Up @@ -78,6 +123,7 @@
- [ ] Xlog - TODO
- [ ] 墨滴 - TODO
- [ ] Flowus 息流 - TODO
- [X] telegra.ph

## 核心特色

Expand Down
3 changes: 2 additions & 1 deletion custom.d.ts
Expand Up @@ -25,4 +25,5 @@

declare module "zhi-notion-markdown"
declare module "uuid"
declare module "cookie-parse"
declare module "cookie-parse"
declare module "telegraph.md"
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -77,6 +77,7 @@
"simple-xmlrpc": "^1.4.2",
"siyuan": "^0.9.4",
"siyuan-plugin-picgo": "^1.4.4",
"telegraph.md": "^0.0.1",
"unplugin-icons": "^0.18.5",
"uuid": "^9.0.1",
"vue": "^3.4.21",
Expand Down
32 changes: 31 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 19cb4dc

Please sign in to comment.