Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Create Release

on:
push:
branches:
- main
- test

permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get package.json version
run: |
VERSION=$(grep '"version"' package.json | head -1 | sed -E 's/.*"version": *"([^"]+)".*/\1/')
if [ -z "$VERSION" ]; then
echo "Version not found in package.json" >&2
exit 1
fi
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Release version: v$VERSION"

- name: Create GitHub Release
uses: actions/create-release@v1
with:
tag_name: v${{ env.VERSION }}
release_name: Release v${{ env.VERSION }}
draft: false
prerelease: ${{ github.ref == 'refs/heads/test' }} # �� ����� test ����� ���������
body: |
Changes in this release:
- TODO: ��������� ��������� ��� ���������� changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

35 changes: 0 additions & 35 deletions .github/workflows/tag-release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.baltin.fbt",
"version": "0.6.0",
"version": "0.6.1",
"displayName": "FunctionalBT",
"description": "Functional Behavior Tree Design Pattern Implementation",
"unity": "2021.2",
Expand Down