更新 .gitea/workflows/demo.yaml
自动流水线示例 / build (push) Successful in 2m3s
Details
自动流水线示例 / deploy (push) Successful in 18s
Details
自动流水线示例 / 检查 (push) Successful in 6s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 14s
Details
自动流水线示例 / download (push) Successful in 1m38s
Details
自动流水线示例 / build (push) Successful in 2m3s
Details
自动流水线示例 / deploy (push) Successful in 18s
Details
自动流水线示例 / 检查 (push) Successful in 6s
Details
自动流水线示例 / 制品上传 (ubuntu-latest, a) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, b) (push) Has been skipped
Details
自动流水线示例 / 制品上传 (ubuntu-latest, c) (push) Has been skipped
Details
自动流水线示例 / upload (ubuntu-latest) (push) Successful in 14s
Details
自动流水线示例 / download (push) Successful in 1m38s
Details
feat(settings): 添加用户主题偏好设置 新增 API `/api/user/preferences`,支持设置深色/浅色主题。 前端已对接该接口并持久化到本地缓存。 发布生产
This commit is contained in:
parent
97ca86b887
commit
e294974530
|
|
@ -7,7 +7,8 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main","releases/**" ]
|
branches: [ "main","releases/**" ]
|
||||||
tags:
|
tags:
|
||||||
- '*' # 任意的tag都会触发
|
#- '*' # 任意的tag都会触发
|
||||||
|
- 'v*.*.*'
|
||||||
# paths:
|
# paths:
|
||||||
# - 'sub-project/**'
|
# - 'sub-project/**'
|
||||||
# - '!sub-project/docs/**' # !在正匹配之后匹配负模式(以 为前缀)将排除该路径。
|
# - '!sub-project/docs/**' # !在正匹配之后匹配负模式(以 为前缀)将排除该路径。
|
||||||
|
|
@ -84,7 +85,7 @@ jobs:
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '22'
|
node-version: '22'
|
||||||
check-latest: true
|
#check-latest: true
|
||||||
# cache: 'npm'
|
# cache: 'npm'
|
||||||
# cache-dependency-path: '**/package-lock.json'
|
# cache-dependency-path: '**/package-lock.json'
|
||||||
- name: 安装node依赖
|
- name: 安装node依赖
|
||||||
|
|
@ -205,7 +206,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- id: set-tag
|
- id: set-tag
|
||||||
# run: echo "tag=release-$(TZ=+8 date '+%Y-%m-%d_%H_%M_%S')" >> $GITHUB_OUTPUT # 把变量输出到github的输出环境,上面的outputs就能获取到
|
# run: echo "tag=release-$(TZ=+8 date '+%Y-%m-%d_%H_%M_%S')" >> $GITHUB_OUTPUT # 把变量输出到github的输出环境,上面的outputs就能获取到
|
||||||
run: echo "tag=release-$(TZ='Asia/Shanghai' date '+%Y-%m-%d_%H_%M_%S')" >> $GITHUB_OUTPUT
|
run: echo "tag=v$(TZ='Asia/Shanghai' date '+%Y.%m.%d%H%M%S')" >> $GITHUB_OUTPUT
|
||||||
- name: Create a File
|
- name: Create a File
|
||||||
run: |
|
run: |
|
||||||
echo "$(TZ='Asia/Shanghai' date '+%Y%m%d%H%M%S') hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
|
echo "$(TZ='Asia/Shanghai' date '+%Y%m%d%H%M%S') hello from ${{ matrix.runs-on }}" > file-${{ matrix.runs-on }}.txt
|
||||||
|
|
@ -335,17 +336,33 @@ jobs:
|
||||||
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
|
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
|
||||||
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
|
echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
|
||||||
echo "标签名称:$TAG_NAME"
|
echo "标签名称:$TAG_NAME"
|
||||||
- name: "✏️ Generate release changelog"
|
#- name: "✏️ Generate release changelog"
|
||||||
uses: janheinrichmerker/action-github-changelog-generator@v2.3
|
# uses: janheinrichmerker/action-github-changelog-generator@v2.3
|
||||||
|
# with:
|
||||||
|
# # token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# token: 'ec5e01f597b42492c1c7a73f9997435fc83c1093'
|
||||||
|
# output: CHANGELOG.md
|
||||||
|
#- name: Extract current version changelog
|
||||||
|
# id: extract
|
||||||
|
# run: |
|
||||||
|
# TAG_NAME1="${GITHUB_REF##*/}" # v1.2.3
|
||||||
|
# cat CHANGELOG.md
|
||||||
|
- name: Setup git tags
|
||||||
|
run: git fetch --tags
|
||||||
|
- name: 安装nodejs
|
||||||
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
# token: ${{ secrets.GITHUB_TOKEN }}
|
node-version: '22'
|
||||||
token: 'ec5e01f597b42492c1c7a73f9997435fc83c1093'
|
- name: Install conventional-changelog-cli
|
||||||
output: CHANGELOG.md
|
run: npm install -g conventional-changelog-cli
|
||||||
- name: Extract current version changelog
|
- name: Generate changelog from commits
|
||||||
id: extract
|
id: changelog
|
||||||
run: |
|
run: |
|
||||||
TAG_NAME1="${GITHUB_REF##*/}" # v1.2.3
|
CHANGELOG=$(conventional-changelog -p angular -r 2)
|
||||||
cat CHANGELOG.md
|
echo "CHANGELOG<<EOF" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "$CHANGELOG" >> "$GITHUB_OUTPUT"
|
||||||
|
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Create Gitea Release
|
- name: Create Gitea Release
|
||||||
id: create_release
|
id: create_release
|
||||||
run: | #API接口:https://git.ewancle.com/api/swagger和https://docs.gitea.com/zh-cn/development/api-usage,EOF必须顶格写
|
run: | #API接口:https://git.ewancle.com/api/swagger和https://docs.gitea.com/zh-cn/development/api-usage,EOF必须顶格写
|
||||||
|
|
@ -356,7 +373,7 @@ jobs:
|
||||||
{
|
{
|
||||||
"tag_name": "${{ env.TAG_NAME }}",
|
"tag_name": "${{ env.TAG_NAME }}",
|
||||||
"name": "Release ${{ env.TAG_NAME }}",
|
"name": "Release ${{ env.TAG_NAME }}",
|
||||||
"body": "This release was created automatically by GitHub Actions.",
|
"body": "${{ steps.changelog.outputs.CHANGELOG }}",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
"prerelease": false
|
"prerelease": false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue