tiddly-gittly / TidGi-Desktop

TidGi is an privacy-in-mind, automated, auto-git-backup, freely-deployed knowledge management Desktop note app, based on Tiddlywiki, with REST API for web-clipping and Anki connect. 「 太记 」是一个基于「 太微 TiddlyWiki 」的知识管理桌面应用,能保护隐私内容、高级自动化、自动Git云备份、部署为博客,且可通过RESTAPI与Anki等应用连接。(迭代开发中欢迎试用,开发进度见下方链接)(Under active development, see website below for details)
https://tidgi.fun
Mozilla Public License 2.0
1.71k stars 106 forks source link

bug: github actions 配置pages 报错 node环境id不合法 #437

Closed HyjHyper closed 8 months ago

HyjHyper commented 1 year ago

Environment 环境信息

TidGi (win32) Version v0.8.0.

Electron Version: 25.2.0 Node Version: 18.15.0 Chromium Version: 114.0.5735.134

但错误发生在 github 上

Description 描述

github actions 配置报错 image 提示:Error: HttpError: Invalid environment node id.

Steps to Reproduce 复现方式

本人使用自带同步总是出错,所以选择使用github desktop单独上传,上传之后,actions就会出错。重复运行,报错重复。

Additional Context 额外上下文

个人认为是Actions配置文件过时或者错误了,但由于自己对这方面的代码了解甚少,特来求助。

wwhiffle commented 1 year ago
  1. 只需要备份而不部署在网站或博客的话,可以这样做
    • 这是一个文件路径:(你的wiki仓库文件夹)\.github\workflows\gh-pages.yml
    • 编辑gh-pages.yml

将其中的

      - name: Deploy to GitHub Pages
        id: deployment
        uses: actions/deploy-pages@v1

改为

#      - name: Deploy to GitHub Pages
#        id: deployment
#        uses: actions/deploy-pages@v1

即注释掉这段代码,作用是取消了 Deploy to GitHub Pages 这个步骤。

  1. 需要部署网站或博客的话,尝试参考https://www.bilibili.com/video/BV1uD4y1H7ri/这个视频。
linonetwo commented 8 months ago

可以尝试从 https://github.com/tiddly-gittly/Tiddlywiki-NodeJS-Github-Template 复制最新版 Action 、 package json,可能有更新。现在用它初始化的一般直接就能用了。