fes.js/.github/workflows/release.yml
xwbx e4e5ba919e
ci: 升级 GitHub Actions 依赖
- actions/checkout: v3/master -> v7
- pnpm/action-setup: v2 -> v5 (兼容 pnpm v10,v6 需 v11+)
- easingthemes/ssh-deploy: main -> v6
- JamesIves/github-pages-deploy-action: v4.3.3 -> v4.9.0
- softprops/action-gh-release: v1 -> v3 (token 改用 with)
- Yikun/hub-mirror-action: master -> v1.5
- anc95/ChatGPT-CodeReview: main -> v1
2026-08-18 11:21:46 +08:00

30 lines
983 B
YAML

on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Get the release version from the tag
shell: bash
if: env.RELEASE_VERSION == ''
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Generate Release Notes
run: |
./.github/workflows/release-notes.mjs ${{ env.RELEASE_VERSION }}
cat notes-${{ env.RELEASE_VERSION }}.md
- name: Create Release for Tag
id: release_tag
uses: softprops/action-gh-release@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
body_path: notes-${{ env.RELEASE_VERSION }}.md