1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-07-11 01:26:42 +08:00

chore(version): update ci (#40)

* style: test

* style: 忽略node_modules

* style: 新增read权限测试

---------

Co-authored-by: chu fan <fairy_408@2925.com>
This commit is contained in:
mmdapl
2023-09-08 14:00:13 +08:00
committed by GitHub
parent 907a2f0259
commit 3271b1799a
8 changed files with 22 additions and 111 deletions

View File

@@ -1,5 +1,5 @@
# 构建Docker镜像
name: Code-CI
name: Code-LintFix
## 触发条件
on:
@@ -40,5 +40,6 @@ jobs:
- name: Code Fix
run: ./scripts/lint --fix
- name: Build Site
run: ./scripts/bundle build

View File

@@ -1,5 +1,5 @@
# 部署到服务器
name: Deploy-ESC
name: ESC-Deploy
on:
## 推送到master

View File

@@ -5,14 +5,13 @@ on:
push:
tags:
- 'v*'
branches:
- master
workflow_dispatch:
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
if: github.repository == '142vip/408CSFamily'
steps:
- name: Checkout Code
@@ -36,25 +35,30 @@ jobs:
- name: Create Zip Archive
run: |
zip -r 408CSFamily.zip . \
-x "node_modules"
-x "node_modules/*"
# 提取版本号
- name: Extract Version
id: extract_version
run: echo "::set-output name=version::$(node -p "require('./package.json').version")"
# 创建发布版本
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
# body: |
# Release ${{ github.ref }}
# - Add feature A
# - Fix bug B
body_path: CHANGELOG.md
## 是否为草稿、是否为预发布
draft: true
prerelease: true
tag_name: v${{ steps.extract_version.outputs.version }}
release_name: Release v${{ steps.extract_version.outputs.version }}
body: |
### Features
### Bug Fixes
## 更新资源
- name: Upload Assets
uses: actions/upload-release-asset@latest
env: