Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@fxliang
Copy link
Contributor

@fxliang fxliang commented May 20, 2025

  • update appcast.xml of weasel by github api info every time workflow runs
  • update other files if release version from github api is equal to version from rime/weasel CHANGELOG.md, which means the newest version in CHANGELOG.md has been released (not draft)

@fxliang fxliang requested a review from lotem May 20, 2025 09:38
@lotem
Copy link
Member

lotem commented May 21, 2025

如果 weasel 更新了,是不是要在這裏手動觸發一次 GitHub Action?是這樣用嗎。

@fxliang
Copy link
Contributor Author

fxliang commented May 21, 2025

如果 weasel 更新了,是不是要在這裏手動觸發一次 GitHub Action?是這樣用嗎。

不用,见
https://github.com/rime/weasel/blob/master/.github/workflows/update-appcast.yml

name: Update Appcast
on:
  release:
    types: [published, prereleased]
jobs:

  update_appcast:

    runs-on: windows-2019

    steps:
      - name: Update Appcast
        if: ${{ github.repository == 'rime/weasel' }}
        run: gh workflow run gh-pages.yml -R rime/home --ref master
        env:
          GH_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}

weasel的正式版发版工作流会是,

  • 准备附加信息在weasel目录里,文件名为 {版本号}.txt
  • 然后weasel里执行升版脚本将升版(会将附加信息放入changelog.md)
  • 推送tag跑release ci,draft一个release
  • 等待确认draft变为public发版
  • 触发update-appcast.yml来触发rime/home的工作流更新home页面和appcast

如果是nightly build也会在prereleased事件的时候触发rime/home 的工作流但是不会更新 appcast之外的文件

@fxliang fxliang merged commit aa51c81 into rime:master May 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants