Skip to content

Commit a89367d

Browse files
Nekoya-JinNekoya-Jin
authored andcommitted
Release v1.0.4: 버전 배지 및 자동화 개선
- package.json 기반 동적 버전 배지 적용 - GitHub Actions 권한 문제 수정 - 워크플로우 안정성 향상
1 parent d78b64e commit a89367d

File tree

4 files changed

+7
-23
lines changed

4 files changed

+7
-23
lines changed

.github/workflows/update-package-version.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
update-version:
1010
runs-on: ubuntu-latest
1111

12+
permissions:
13+
contents: write
14+
1215
steps:
1316
- name: Checkout repository
1417
uses: actions/checkout@v4
@@ -57,31 +60,12 @@ jobs:
5760
5861
git add src/UniFP/Assets/Plugins/UniFP/package.json
5962
git commit -m "chore: update package.json version to $VERSION [skip ci]"
60-
61-
# 태그가 생성된 커밋에 변경사항 추가 (force push)
6263
git push origin HEAD:main
6364
6465
echo "✅ Changes committed and pushed"
6566
66-
- name: Update tag to include version change
67-
if: steps.check_changes.outputs.changed == 'true'
68-
run: |
69-
VERSION=${{ steps.get_version.outputs.version }}
70-
TAG_NAME="v$VERSION"
71-
72-
# 기존 태그 삭제
73-
git tag -d "$TAG_NAME" || true
74-
git push origin ":refs/tags/$TAG_NAME" || true
75-
76-
# 새로운 태그 생성 (업데이트된 커밋에)
77-
git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
78-
git push origin "$TAG_NAME"
79-
80-
echo "✅ Tag $TAG_NAME updated"
81-
8267
- name: Create Release
83-
if: steps.check_changes.outputs.changed == 'true'
84-
uses: softprops/action-gh-release@v1
68+
uses: softprops/action-gh-release@v2
8569
with:
8670
tag_name: v${{ steps.get_version.outputs.version }}
8771
name: Release v${{ steps.get_version.outputs.version }}

README.ko.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![Unity](https://img.shields.io/badge/Unity-2020.3%2B-000?logo=unity)](https://unity.com/)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](./LICENSE)
9-
[![Release](https://img.shields.io/github/v/release/Nekoya-Jin/UniFP?label=version&color=blue)](https://github.com/Nekoya-Jin/UniFP/releases)
9+
[![Version](https://img.shields.io/github/package-json/v/Nekoya-Jin/UniFP?filename=src%2FUniFP%2FAssets%2FPlugins%2FUniFP%2Fpackage.json&label=version&color=blue)](https://github.com/Nekoya-Jin/UniFP/releases)
1010

1111
UniFP는 Rust과 Haskell, F# 영감을 받아, Unity 게임 로직에 함수형 사고방식과 명시적 에러 처리를 도입하는 GC ZERO allocation C# 함수형 프로그래밍 프레임워크입니다.
1212

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![Unity](https://img.shields.io/badge/Unity-2020.3%2B-000?logo=unity)](https://unity.com/)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](./LICENSE)
9-
[![Release](https://img.shields.io/github/v/release/Nekoya-Jin/UniFP?label=version&color=blue)](https://github.com/Nekoya-Jin/UniFP/releases)
9+
[![Version](https://img.shields.io/github/package-json/v/Nekoya-Jin/UniFP?filename=src%2FUniFP%2FAssets%2FPlugins%2FUniFP%2Fpackage.json&label=version&color=blue)](https://github.com/Nekoya-Jin/UniFP/releases)
1010

1111
UniFP is a GC zero-allocation C# functional programming framework for Unity, inspired by Rust, Haskell, and F#. It brings functional thinking and explicit error handling to game logic without hurting runtime performance.
1212

README.zh-CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
[![Unity](https://img.shields.io/badge/Unity-2020.3%2B-000?logo=unity)](https://unity.com/)
88
[![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](./LICENSE)
9-
[![Release](https://img.shields.io/github/v/release/Nekoya-Jin/UniFP?label=version&color=blue)](https://github.com/Nekoya-Jin/UniFP/releases)
9+
[![Version](https://img.shields.io/github/package-json/v/Nekoya-Jin/UniFP?filename=src%2FUniFP%2FAssets%2FPlugins%2FUniFP%2Fpackage.json&label=version&color=blue)](https://github.com/Nekoya-Jin/UniFP/releases)
1010

1111
UniFP 是一款受 Rust、Haskell 与 F# 启发的 Unity 专用 C# 函数式编程框架,追求 GC 零分配,让函数式思维与显式错误处理安全落地在游戏逻辑中。
1212

0 commit comments

Comments
 (0)