From b340936491e46c15afedec98723cfea0bbc3c471 Mon Sep 17 00:00:00 2001 From: pugaizai Date: Sat, 22 Feb 2025 21:55:20 +0800 Subject: [PATCH] update --- .github/workflows/build-x86_64.yml | 19 +++++++++++-------- .github/workflows/update.yaml | 18 +++++++++--------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build-x86_64.yml b/.github/workflows/build-x86_64.yml index bb8c13b..b0fc648 100644 --- a/.github/workflows/build-x86_64.yml +++ b/.github/workflows/build-x86_64.yml @@ -3,7 +3,7 @@ name: Build x86_64 on: workflow_dispatch -# If previous workflow is still running, we push again, we will cancel the previous workflow +# 如果前一个工作流仍在运行,当我们再次推送时,将取消前一个工作流 concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} cancel-in-progress: true @@ -24,6 +24,7 @@ jobs: sudo apt-get install -y flatpak flatpak-builder ca-certificates gnupg software-properties-common flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo + # 导入GPG密钥 - name: Import GPG key uses: crazy-max/ghaction-import-gpg@v6 with: @@ -35,6 +36,7 @@ jobs: git config --global protocol.file.allow always declare -a apps=( + "manifests/io.github.arvinlovegood.go-stock/io.github.arvinlovegood.go-stock.yml" "manifests/com.cherry_ai.cherrystudio/com.cherry_ai.cherrystudio.yml" "manifests/io.github.wgh136.pixes/io.github.wgh136.pixes.yml" "manifests/io.github.venera_app.venera/io.github.venera_app.venera.yml" @@ -66,21 +68,22 @@ jobs: --disable-rofiles-fuse done + # 签名仓库 - name: Sign repo run: | flatpak build-sign repo --gpg-sign=${{ secrets.GPG_KEY_FINGERPRINT }} - name: Upload to R2 - uses: ryand56/r2-upload-action@latest # Can be any release + uses: ryand56/r2-upload-action@latest # 可以是任何版本 with: r2-account-id: ${{ secrets.R2_ACCOUNT_ID }} r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }} r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }} r2-bucket: ${{ secrets.R2_BUCKET }} source-dir: repo - destination-dir: repo # Can be anything as long as it is an actual path - output-file-url: 'true' # defaults to true - multipart-size: 100 # If the file size is greater than the value provided here, then use multipart upload - max-retries: 5 # The maximum number of retries it takes to upload a multipart chunk until it moves on to the next part - multipart-concurrent: true # Whether to concurrently upload a multipart chunk - keep-file-fresh: 'true' # defaults to false + destination-dir: repo # 可以是任何实际路径 + output-file-url: 'true' # 默认为true + multipart-size: 100 # 如果文件大小大于此处提供的值,则使用分段上传 + max-retries: 5 # 上传分段块的最大重试次数,直到继续下一个部分 + multipart-concurrent: true # 是否并发上传分段块 + keep-file-fresh: 'true' # 默认为false diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index bfe8276..1421cc2 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -4,7 +4,7 @@ on: push: paths: - .github/workflows/update.yaml - schedule: # for scheduling to work this file must be in the default branch + schedule: # 为了调度正常工作,此文件必须在默认分支中 - cron: "0 12 * * *" # 每天中午12点运行一次 paths: # 仅当清单文件变更时才触发 - 'manifests/**/*.yml' @@ -15,8 +15,8 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - appid: # list all flatpak application id to check - # - io.github.arvinlovegood.go-stock + appid: # 列出所有要检查的 Flatpak 应用 ID + - io.github.arvinlovegood.go-stock - com.cherry_ai.cherrystudio - io.github.venera_app.venera - io.github.wgh136.pixes @@ -26,23 +26,23 @@ jobs: - com.qq.docs - com.qq.weixin - com.qq.qqmusic - - io.github.c0re100.qbittorrent-enhanced-edition + - io.github.c0re100.qBittorrent-Enhanced-Edition - io.github.msojocs.bilibili - - io.github.pbh_btn.peerbanhelper + - io.github.PBH_BTN.PeerBanHelper - org.freedesktop.xorg.xeyes - com.cursor.cursor - com.larksuite.lark - com.qq.qq - - org.freedesktop.Platform.electron + - org.freedesktop.Platform.Electron steps: - uses: actions/checkout@v4 - - uses: docker://ghcr.io/flathub/flatpak-external-data-checker:latest + - uses: docker://ghcr.io/flathub/flatpak-external-data-checker:v1.0.0 env: GIT_AUTHOR_NAME: Flatpak External Data Checker GIT_COMMITTER_NAME: Flatpak External Data Checker - # email sets "github-actions[bot]" as commit author, see https://github.community/t/github-actions-bot-email-address/17204/6 + # 邮箱设置为 "github-actions[bot]" 作为提交作者,参见 https://github.community/t/github-actions-bot-email-address/17204/6 GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - args: --update --never-fork manifests/${{ matrix.appid }}/${{ matrix.appid }}.yml # e.g. com.organization.myapp.json + args: --update --never-fork manifests/${{ matrix.appid }}/${{ matrix.appid }}.yml # 例如 com.organization.myapp.json