Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pugaizai committed Feb 22, 2025
1 parent 268f4de commit b340936
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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"
Expand Down Expand Up @@ -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
18 changes: 9 additions & 9 deletions .github/workflows/update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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

0 comments on commit b340936

Please sign in to comment.