Skip to content

Commit 5feb86c

Browse files
elysia-bestjyxjjjcxw620sujoshuaYizelove
authored
chore(docs&ci): change links in files & fix github ci and docker ci (OpenListTeam#3)
* Enable blank issue * chore(README.md): update docs (temporally) * Update FUNDING.yml * chore: purge README.md * Update README.md Alist改为OpenList * Update README_cn.md Alist改为OpenList * Update README.md 漏了一处 * Update README_ja.md Alist改为OpenList * Update README_cn.md 漏了一处 * Update CODE_OF_CONDUCT.md 更改链接 * Update README.md 更新tg链接 * Update README_cn.md 更新tg链接 * Update README_ja.md 更新tg链接 * chore(build&docs): use new links in build and github templates * Update README.md 更新团队名 * chore: disable translation update, change beta release into artifacts * fix: disable docker build and name the uploaded artifacts * fix typo * Update README_cn.md 更新团队名称 * Update README_ja.md 更新 * Update project name in CONTRIBUTING.md * Update README_cn.md 更新 * Update README.md 更新 * Update README_ja.md * fix: fix artifact name * chore(build.sh): use original musl.cc * fix(ci): fix action artifacts upload * Update CODE_OF_CONDUCT.md TG更改为Telegram * Update README_cn.md 更新论坛链接 * Update README.md 更新论坛链接 * Update README_ja.md 更新论坛链接 * feat: update community based call back for onedrive * chore(ci): update musl.cc link * chore: use openlist as name instead of default OpenList * Update user.go * chore: fix artifact name * feat(ci): add docker build test * fix: add more platforms * fix: explicitly use docker.io * fix: fix typo * fix(docker): fix test build push platform * chore: change to OpenListTeam * Update CODE_OF_CONDUCT.md * doc: update org name * docs: change repo urls * feat: release docker image to ghcr.io on tagging * fix: fix the name of test_docker * build: update the names in docker-compose and docker file * chore: rename --------- Co-authored-by: ShenLin <773933146@qq.com> Co-authored-by: Hantong Chen <cxwdyx620@gmail.com> Co-authored-by: joshua <i@joshua.su> Co-authored-by: 绎泽 <yize@tencent.to> Co-authored-by: zyk2507 <93830642+zyk2507@users.noreply.github.com>
1 parent ee783fa commit 5feb86c

File tree

20 files changed

+320
-153
lines changed

20 files changed

+320
-153
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ body:
1212
attributes:
1313
label: Please make sure of the following things
1414
description: |
15-
You must check all the following, otherwise your issue may be closed directly. Or you can go to the [discussions](https://github.com/alist-org/alist/discussions)
16-
您必须勾选以下所有内容,否则您的issue可能会被直接关闭。或者您可以去[讨论区](https://github.com/alist-org/alist/discussions)
15+
You must check all the following, otherwise your issue may be closed directly. Or you can go to the [discussions](https://github.com/OpenListTeam/OpenList/discussions)
16+
您必须勾选以下所有内容,否则您的issue可能会被直接关闭。或者您可以去[讨论区](https://github.com/OpenListTeam/OpenList/discussions)
1717
options:
1818
- label: |
19-
I have read the [documentation](https://alist.nn.ci).
20-
我已经阅读了[文档](https://alist.nn.ci)。
19+
I have read the [documentation](https://openlistteam.github.io/docs).
20+
我已经阅读了[文档](https://openlistteam.github.io/docs)。
2121
- label: |
2222
I'm sure there are no duplicate issues or discussions.
2323
我确定没有重复的issue或讨论。
2424
- label: |
25-
I'm sure it's due to `AList` and not something else(such as [Network](https://alist.nn.ci/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
26-
我确定是`AList`的问题,而不是其他原因(例如[网络](https://alist.nn.ci/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。
25+
I'm sure it's due to `OpenList` and not something else(such as [Network](https://openlistteam.github.io/docs/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host) ,`Dependencies` or `Operational`).
26+
我确定是`OpenList`的问题,而不是其他原因(例如[网络](https://openlistteam.github.io/docs/zh/faq/howto.html#tls-handshake-timeout-read-connection-reset-by-peer-dns-lookup-failed-connect-connection-refused-client-timeout-exceeded-while-awaiting-headers-no-such-host),`依赖`或`操作`)。
2727
- label: |
2828
I'm sure this issue is not fixed in the latest version.
2929
我确定这个问题在最新版本中没有被修复。
3030
3131
- type: input
3232
id: version
3333
attributes:
34-
label: AList Version / AList 版本
34+
label: OpenList Version / OpenList 版本
3535
description: |
3636
What version of our software are you running? Do not use `latest` or `master` as an answer.
3737
您使用的是哪个版本的软件?请不要使用`latest`或`master`作为答案。
@@ -68,8 +68,8 @@ body:
6868
attributes:
6969
label: Config / 配置
7070
description: |
71-
Please provide the configuration file of your `AList` application and take a screenshot of the relevant storage configuration. (hide privacy field)
72-
请提供您的`AList`应用的配置文件,并截图相关存储配置。(隐藏隐私字段)
71+
Please provide the configuration file of your `OpenList` application and take a screenshot of the relevant storage configuration. (hide privacy field)
72+
请提供您的`OpenList`应用的配置文件,并截图相关存储配置。(隐藏隐私字段)
7373
validations:
7474
required: true
7575
- type: textarea

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: Questions & Discussions
4-
url: https://github.com/alist-org/alist/discussions
4+
url: https://github.com/OpenListTeam/OpenList/discussions
55
about: Use GitHub discussions for message-board style questions and discussions.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ body:
77
label: Please make sure of the following things
88
description: You may select more than one, even select all.
99
options:
10-
- label: I have read the [documentation](https://alist.nn.ci).
10+
- label: I have read the [documentation](https://openlistteam.github.io/docs).
1111
- label: I'm sure there are no duplicate issues or discussions.
1212
- label: I'm sure this feature is not implemented.
1313
- label: I'm sure it's a reasonable and popular requirement.

.github/workflows/auto_lang.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: auto_lang
22

33
on:
4-
push:
5-
branches:
6-
- 'main'
7-
paths:
8-
- 'drivers/**'
9-
- 'internal/bootstrap/data/setting.go'
10-
- 'internal/conf/const.go'
11-
- 'cmd/lang.go'
4+
# Disable translation generation, enable it after everything is setup.
5+
# push:
6+
# branches:
7+
# - 'main'
8+
# paths:
9+
# - 'drivers/**'
10+
# - 'internal/bootstrap/data/setting.go'
11+
# - 'internal/conf/const.go'
12+
# - 'cmd/lang.go'
1213
workflow_dispatch:
1314

1415
concurrency:

.github/workflows/beta_release.yml

Lines changed: 66 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,22 @@ jobs:
4141
run: |
4242
git tag -l
4343
npx changelogithub --output CHANGELOG.md
44-
# npx changelogen@latest --output CHANGELOG.md
4544
45+
# Disable this right now, use github workflow assets for easier manipulation
46+
# - name: Upload assets
47+
# uses: softprops/action-gh-release@v2
48+
# with:
49+
# body_path: "See CHANGELOG.md"
50+
# files: CHANGELOG.md
51+
# prerelease: true
52+
# tag_name: beta
4653
- name: Upload assets
47-
uses: softprops/action-gh-release@v2
54+
uses: actions/upload-artifact@v4
4855
with:
49-
body_path: CHANGELOG.md
50-
files: CHANGELOG.md
51-
prerelease: true
52-
tag_name: beta
56+
name: beta changelog
57+
path: ${{ github.workspace }}/CHANGELOG.md
58+
compression-level: 0
59+
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
5360

5461
release:
5562
needs:
@@ -87,52 +94,73 @@ jobs:
8794
run: bash build.sh dev web
8895

8996
- name: Build
90-
uses: go-cross/cgo-actions@v1
97+
uses: go-cross/cgo-actions@454cfd6d20816878926b0253ca8f2dbbd2f7d731 # V1.1.0
9198
with:
9299
targets: ${{ matrix.target }}
93100
musl-target-format: $os-$musl-$arch
94101
out-dir: build
102+
output: openlist-$target$ext
103+
musl-base-url: "https://github.com/OpenListTeam/musl-compilers/releases/download/2025-06-12/"
95104
x-flags: |
96105
github.com/alist-org/alist/v3/internal/conf.BuiltAt=$built_at
97-
github.com/alist-org/alist/v3/internal/conf.GitAuthor=Xhofe
106+
github.com/alist-org/alist/v3/internal/conf.GitAuthor=OpenList
98107
github.com/alist-org/alist/v3/internal/conf.GitCommit=$git_commit
99108
github.com/alist-org/alist/v3/internal/conf.Version=$tag
100109
github.com/alist-org/alist/v3/internal/conf.WebVersion=dev
101110
102111
- name: Compress
103112
run: |
104113
bash build.sh zip ${{ matrix.hash }}
105-
106-
- name: Upload assets
107-
uses: softprops/action-gh-release@v2
108-
with:
109-
files: build/compress/*
110-
prerelease: true
111-
tag_name: beta
112-
113-
desktop:
114-
needs:
115-
- release
116-
name: Beta Release Desktop
117-
runs-on: ubuntu-latest
118-
steps:
119-
- name: Checkout repo
120-
uses: actions/checkout@v4
121-
with:
122-
repository: alist-org/desktop-release
123-
ref: main
124-
persist-credentials: false
125-
fetch-depth: 0
126114
127-
- name: Commit
115+
# See above
116+
# - name: Upload assets
117+
# uses: softprops/action-gh-release@v2
118+
# with:
119+
# files: build/compress/*
120+
# prerelease: true
121+
# tag_name: beta
122+
123+
- name: Clean illegal characters from matrix.target
124+
id: clean_target_name
128125
run: |
129-
git config --local user.email "bot@nn.ci"
130-
git config --local user.name "IlaBot"
131-
git commit --allow-empty -m "Trigger build for ${{ github.sha }}"
126+
ILLEGAL_CHARS_REGEX='[":<>|*?\\/\r\n]'
127+
CLEANED_TARGET=$(echo "${{ matrix.target }}" | sed -E "s/$ILLEGAL_CHARS_REGEX//g")
128+
echo "Original target: ${{ matrix.target }}"
129+
echo "Cleaned target: $CLEANED_TARGET"
130+
echo "cleaned_target=$CLEANED_TARGET" >> $GITHUB_ENV
132131
133-
- name: Push commit
134-
uses: ad-m/github-push-action@master
132+
- name: Upload assets
133+
uses: actions/upload-artifact@v4
135134
with:
136-
github_token: ${{ secrets.MY_TOKEN }}
137-
branch: main
138-
repository: alist-org/desktop-release
135+
name: beta builds for ${{ env.cleaned_target }}
136+
path: ${{ github.workspace }}/build/compress/*
137+
compression-level: 0
138+
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
139+
140+
# TODO: We do not have desktop clients right now.
141+
# desktop:
142+
# needs:
143+
# - release
144+
# name: Beta Release Desktop
145+
# runs-on: ubuntu-latest
146+
# steps:
147+
# - name: Checkout repo
148+
# uses: actions/checkout@v4
149+
# with:
150+
# repository: alist-org/desktop-release
151+
# ref: main
152+
# persist-credentials: false
153+
# fetch-depth: 0
154+
155+
# - name: Commit
156+
# run: |
157+
# git config --local user.email "bot@nn.ci"
158+
# git config --local user.name "IlaBot"
159+
# git commit --allow-empty -m "Trigger build for ${{ github.sha }}"
160+
161+
# - name: Push commit
162+
# uses: ad-m/github-push-action@master
163+
# with:
164+
# github_token: ${{ secrets.MY_TOKEN }}
165+
# branch: main
166+
# repository: alist-org/desktop-release

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ jobs:
5757
- name: Upload artifact
5858
uses: actions/upload-artifact@v4
5959
with:
60-
name: alist_${{ env.SHA }}_${{ matrix.target }}
60+
name: openlist_${{ env.SHA }}_${{ matrix.target }}
6161
path: build/*

.github/workflows/release.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -64,29 +64,30 @@ jobs:
6464
files: build/compress/*
6565
prerelease: false
6666

67-
release_desktop:
68-
needs: release
69-
name: Release desktop
70-
runs-on: ubuntu-latest
71-
steps:
72-
- name: Checkout repo
73-
uses: actions/checkout@v4
74-
with:
75-
repository: alist-org/desktop-release
76-
ref: main
77-
persist-credentials: false
78-
fetch-depth: 0
67+
# We don't have desktop right now
68+
# release_desktop:
69+
# needs: release
70+
# name: Release desktop
71+
# runs-on: ubuntu-latest
72+
# steps:
73+
# - name: Checkout repo
74+
# uses: actions/checkout@v4
75+
# with:
76+
# repository: alist-org/desktop-release
77+
# ref: main
78+
# persist-credentials: false
79+
# fetch-depth: 0
7980

80-
- name: Add tag
81-
run: |
82-
git config --local user.email "bot@nn.ci"
83-
git config --local user.name "IlaBot"
84-
version=$(wget -qO- -t1 -T2 "https://api.github.com/repos/alist-org/alist/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')
85-
git tag -a $version -m "release $version"
81+
# - name: Add tag
82+
# run: |
83+
# git config --local user.email "bot@nn.ci"
84+
# git config --local user.name "IlaBot"
85+
# version=$(wget -qO- -t1 -T2 "https://api.github.com/repos/alist-org/alist/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')
86+
# git tag -a $version -m "release $version"
8687

87-
- name: Push tags
88-
uses: ad-m/github-push-action@master
89-
with:
90-
github_token: ${{ secrets.MY_TOKEN }}
91-
branch: main
92-
repository: alist-org/desktop-release
88+
# - name: Push tags
89+
# uses: ad-m/github-push-action@master
90+
# with:
91+
# github_token: ${{ secrets.MY_TOKEN }}
92+
# branch: main
93+
# repository: alist-org/desktop-release

.github/workflows/release_docker.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
name: release_docker
22

33
on:
4+
workflow_dispatch:
45
push:
56
tags:
67
- 'v*'
7-
branches:
8-
- main
9-
pull_request:
10-
branches:
11-
- main
128

139
concurrency:
1410
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1511
cancel-in-progress: true
1612

1713
env:
18-
REGISTRY: 'xhofe/alist'
19-
REGISTRY_USERNAME: 'xhofe'
20-
REGISTRY_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
14+
ORG_NAME: openlistteam
15+
IMAGE_NAME: openlist
16+
REGISTRY: ghcr.io
2117
ARTIFACT_NAME: 'binaries_docker_release'
2218
RELEASE_PLATFORMS: 'linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x,linux/ppc64le,linux/riscv64'
2319
IMAGE_PUSH: ${{ github.event_name == 'push' }}
@@ -106,19 +102,19 @@ jobs:
106102
- name: Set up Docker Buildx
107103
uses: docker/setup-buildx-action@v3
108104

109-
- name: Login to DockerHub
105+
- name: Login to GitHub Container Registry
110106
if: env.IMAGE_PUSH == 'true'
111107
uses: docker/login-action@v3
112108
with:
113-
logout: true
114-
username: ${{ env.REGISTRY_USERNAME }}
115-
password: ${{ env.REGISTRY_PASSWORD }}
109+
registry: ${{ env.REGISTRY }}
110+
username: ${{ github.actor }}
111+
password: ${{ secrets.GITHUB_TOKEN }}
116112

117113
- name: Docker meta
118114
id: meta
119115
uses: docker/metadata-action@v5
120116
with:
121-
images: ${{ env.REGISTRY }}
117+
images: ${{ env.REGISTRY }}/${{ env.ORG_NAME }}/${{ env.IMAGE_NAME }}
122118
tags: ${{ env.IMAGE_IS_PROD == 'true' && '' || env.IMAGE_TAGS_BETA }}
123119
flavor: |
124120
${{ env.IMAGE_IS_PROD == 'true' && 'latest=true' || '' }}

0 commit comments

Comments
 (0)