1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Add day to the git tag name (#652)

* Add day to the git tag name

* Change release tag generation method.

v2023.04
v2023.04-1
v2023.04-2
v2023.04-3
etc

* add git fetch to get all tags

* add git fetch to get all tags
This commit is contained in:
neodiX42 2023-05-05 03:50:46 -05:00 committed by GitHub
parent 1aadc80742
commit 7878578dba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 100 additions and 85 deletions

View file

@ -110,15 +110,24 @@ jobs:
id: read_release id: read_release
shell: bash shell: bash
run: | run: |
r=$(cat Changelog.md) r=$(cat recent_changelog.md)
r="${r//'%'/'%25'}" r="${r//'%'/'%25'}"
r="${r//$'\n'/'%0A'}" r="${r//$'\n'/'%0A'}"
r="${r//$'\r'/'%0D'}" r="${r//$'\r'/'%0D'}"
echo "::set-output name=CHANGELOG_BODY::$r" echo "::set-output name=CHANGELOG_BODY::$r"
- name: Get current date - name: Get next tag
id: date id: tag
run: echo "::set-output name=date::$(date +'%Y.%m')" run: |
git fetch --all --tags
git tag -l
NEW_TAG=v$(date +'%Y.%m')
FOUND=$(git tag -l | grep $NEW_TAG | wc -l)
if [ $FOUND -eq 0 ]; then
echo "TAG=$NEW_TAG" >> $GITHUB_OUTPUT
else
echo "TAG=$NEW_TAG-$FOUND" >> $GITHUB_OUTPUT
fi
- name: Get registration token - name: Get registration token
id: getRegToken id: getRegToken
@ -131,8 +140,8 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: v${{ steps.date.outputs.date }} tag_name: ${{ steps.tag.outputs.TAG }}
release_name: v${{ steps.date.outputs.date }} release_name: TON ${{ steps.tag.outputs.TAG }}
body: | body: |
${{ steps.read_release.outputs.CHANGELOG_BODY }} ${{ steps.read_release.outputs.CHANGELOG_BODY }}
draft: false draft: false
@ -148,7 +157,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries.zip file: artifacts/ton-win-binaries.zip
asset_name: ton-win-x86-64.zip asset_name: ton-win-x86-64.zip
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - fift - name: Upload Windows 2019 single artifact - fift
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -156,7 +165,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/fift.exe file: artifacts/ton-win-binaries/fift.exe
asset_name: fift.exe asset_name: fift.exe
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - func - name: Upload Windows 2019 single artifact - func
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -164,7 +173,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/func.exe file: artifacts/ton-win-binaries/func.exe
asset_name: func.exe asset_name: func.exe
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - lite-client - name: Upload Windows 2019 single artifact - lite-client
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -172,7 +181,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/lite-client.exe file: artifacts/ton-win-binaries/lite-client.exe
asset_name: lite-client.exe asset_name: lite-client.exe
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - rldp-http-proxy - name: Upload Windows 2019 single artifact - rldp-http-proxy
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -180,7 +189,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/rldp-http-proxy.exe file: artifacts/ton-win-binaries/rldp-http-proxy.exe
asset_name: rldp-http-proxy.exe asset_name: rldp-http-proxy.exe
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - http-proxy - name: Upload Windows 2019 single artifact - http-proxy
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -188,7 +197,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/http-proxy.exe file: artifacts/ton-win-binaries/http-proxy.exe
asset_name: http-proxy.exe asset_name: http-proxy.exe
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - storage-daemon-cli - name: Upload Windows 2019 single artifact - storage-daemon-cli
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -196,7 +205,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/storage-daemon-cli.exe file: artifacts/ton-win-binaries/storage-daemon-cli.exe
asset_name: storage-daemon-cli.exe asset_name: storage-daemon-cli.exe
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - tonlibjson - name: Upload Windows 2019 single artifact - tonlibjson
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -204,7 +213,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/tonlibjson.dll file: artifacts/ton-win-binaries/tonlibjson.dll
asset_name: tonlibjson.dll asset_name: tonlibjson.dll
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - tonlib-cli - name: Upload Windows 2019 single artifact - tonlib-cli
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -212,7 +221,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-win-binaries/tonlib-cli.exe file: artifacts/ton-win-binaries/tonlib-cli.exe
asset_name: tonlib-cli.exe asset_name: tonlib-cli.exe
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
# mac x86-64 # mac x86-64
@ -222,7 +231,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries.zip file: artifacts/ton-x86_64-macos-binaries.zip
asset_name: ton-mac-x86-64.zip asset_name: ton-mac-x86-64.zip
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - fift - name: Upload Mac x86-64 single artifact - fift
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -230,7 +239,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/fift file: artifacts/ton-x86_64-macos-binaries/fift
asset_name: fift-mac-x86-64 asset_name: fift-mac-x86-64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - func - name: Upload Mac x86-64 single artifact - func
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -238,7 +247,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/func file: artifacts/ton-x86_64-macos-binaries/func
asset_name: func-mac-x86-64 asset_name: func-mac-x86-64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - lite-client - name: Upload Mac x86-64 single artifact - lite-client
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -246,7 +255,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/lite-client file: artifacts/ton-x86_64-macos-binaries/lite-client
asset_name: lite-client-mac-x86-64 asset_name: lite-client-mac-x86-64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - rldp-http-proxy - name: Upload Mac x86-64 single artifact - rldp-http-proxy
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -254,7 +263,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/rldp-http-proxy file: artifacts/ton-x86_64-macos-binaries/rldp-http-proxy
asset_name: rldp-http-proxy-mac-x86-64 asset_name: rldp-http-proxy-mac-x86-64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - http-proxy - name: Upload Mac x86-64 single artifact - http-proxy
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -262,7 +271,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/http-proxy file: artifacts/ton-x86_64-macos-binaries/http-proxy
asset_name: http-proxy-mac-x86-64 asset_name: http-proxy-mac-x86-64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - storage-daemon-cli - name: Upload Mac x86-64 single artifact - storage-daemon-cli
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -270,7 +279,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/storage-daemon-cli file: artifacts/ton-x86_64-macos-binaries/storage-daemon-cli
asset_name: storage-daemon-cli-mac-x86-64 asset_name: storage-daemon-cli-mac-x86-64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - tonlibjson - name: Upload Mac x86-64 single artifact - tonlibjson
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -278,7 +287,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/libtonlibjson.dylib file: artifacts/ton-x86_64-macos-binaries/libtonlibjson.dylib
asset_name: tonlibjson-mac-x86-64.dylib asset_name: tonlibjson-mac-x86-64.dylib
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - tonlib-cli - name: Upload Mac x86-64 single artifact - tonlib-cli
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -286,7 +295,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-macos-binaries/tonlib-cli file: artifacts/ton-x86_64-macos-binaries/tonlib-cli
asset_name: tonlib-cli-mac-x86-64 asset_name: tonlib-cli-mac-x86-64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
# linux x86-64 # linux x86-64
@ -296,7 +305,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries.zip file: artifacts/ton-x86_64-linux-binaries.zip
asset_name: ton-linux-x86_64.zip asset_name: ton-linux-x86_64.zip
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - fift - name: Upload Linux x86-64 single artifact - fift
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -304,7 +313,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/fift file: artifacts/ton-x86_64-linux-binaries/fift
asset_name: fift-linux-x86_64 asset_name: fift-linux-x86_64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - func - name: Upload Linux x86-64 single artifact - func
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -312,7 +321,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/func file: artifacts/ton-x86_64-linux-binaries/func
asset_name: func-linux-x86_64 asset_name: func-linux-x86_64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - lite-client - name: Upload Linux x86-64 single artifact - lite-client
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -320,7 +329,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/lite-client file: artifacts/ton-x86_64-linux-binaries/lite-client
asset_name: lite-client-linux-x86_64 asset_name: lite-client-linux-x86_64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - rldp-http-proxy - name: Upload Linux x86-64 single artifact - rldp-http-proxy
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -328,7 +337,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/rldp-http-proxy file: artifacts/ton-x86_64-linux-binaries/rldp-http-proxy
asset_name: rldp-http-proxy-linux-x86_64 asset_name: rldp-http-proxy-linux-x86_64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - http-proxy - name: Upload Linux x86-64 single artifact - http-proxy
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -336,7 +345,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/http-proxy file: artifacts/ton-x86_64-linux-binaries/http-proxy
asset_name: http-proxy-linux-x86_64 asset_name: http-proxy-linux-x86_64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - storage-daemon-cli - name: Upload Linux x86-64 single artifact - storage-daemon-cli
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -344,7 +353,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/storage-daemon-cli file: artifacts/ton-x86_64-linux-binaries/storage-daemon-cli
asset_name: storage-daemon-cli-linux-x86_64 asset_name: storage-daemon-cli-linux-x86_64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - tonlibjson - name: Upload Linux x86-64 single artifact - tonlibjson
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -352,7 +361,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/libtonlibjson.so.0.5 file: artifacts/ton-x86_64-linux-binaries/libtonlibjson.so.0.5
asset_name: tonlibjson-linux-x86_64.so asset_name: tonlibjson-linux-x86_64.so
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - tonlib-cli - name: Upload Linux x86-64 single artifact - tonlib-cli
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -360,7 +369,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-x86_64-linux-binaries/tonlib-cli file: artifacts/ton-x86_64-linux-binaries/tonlib-cli
asset_name: tonlib-cli-linux-x86_64 asset_name: tonlib-cli-linux-x86_64
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}
# - name: Upload Linux arm64 artifacts # - name: Upload Linux arm64 artifacts
# uses: svenstaro/upload-release-action@v2 # uses: svenstaro/upload-release-action@v2
@ -368,7 +377,7 @@ jobs:
# repo_token: ${{ secrets.GITHUB_TOKEN }} # repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: artifacts/ton-aarch64-linux-binaries.zip # file: artifacts/ton-aarch64-linux-binaries.zip
# asset_name: ton-linux-arm64.zip # asset_name: ton-linux-arm64.zip
# tag: v${{ steps.date.outputs.date }} # tag: ${{ steps.tag.outputs.TAG }}
# #
# - name: Upload Mac arm64 artifacts # - name: Upload Mac arm64 artifacts
# uses: svenstaro/upload-release-action@v2 # uses: svenstaro/upload-release-action@v2
@ -376,7 +385,7 @@ jobs:
# repo_token: ${{ secrets.GITHUB_TOKEN }} # repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: artifacts/ton-aarch64-macos-binaries # file: artifacts/ton-aarch64-macos-binaries
# asset_name: ton-mac-arm64.zip # asset_name: ton-mac-arm64.zip
# tag: v${{ steps.date.outputs.date }} # tag: ${{ steps.tag.outputs.TAG }}
- name: Upload WASM artifacts - name: Upload WASM artifacts
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
@ -384,4 +393,4 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }} repo_token: ${{ secrets.GITHUB_TOKEN }}
file: artifacts/ton-wasm-binaries.zip file: artifacts/ton-wasm-binaries.zip
asset_name: ton-wasm-binaries.zip asset_name: ton-wasm-binaries.zip
tag: v${{ steps.date.outputs.date }} tag: ${{ steps.tag.outputs.TAG }}

6
recent_changelog.md Normal file
View file

@ -0,0 +1,6 @@
## 03.2023 Update
1. Improvement of ADNL connection stability
2. Transaction emulator support and getAccountStateByTransaction method
3. Fixes of typos, undefined behavior and timer warnings
4. Handling incorrect integer literal values in funC; funC version bumped to 0.4.2
5. FunC Mathlib