Skip to content

automatically update files for weasel when needed #1912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy