From c7271d97ae1af53def8f9487dba44bb613662762 Mon Sep 17 00:00:00 2001 From: neodix42 Date: Mon, 3 Feb 2025 12:16:11 +0400 Subject: [PATCH] Add smartcont+lib folders to release (#1508) * add folders smartcont and lib only to release for having a small download link * allow usage of patter in file name * upgrade upload-release-action@v2 to v3 * Revert "upgrade upload-release-action@v2 to v3" This reverts commit 516126084a8bda7524c557197c357f0e95b05a55. * use gh cli for upload smartcont_lib * use gh cli for upload smartcont_lib * gh requires gh_token * clean up --- .github/workflows/create-release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index 652aaef6..05a3db26 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -4,6 +4,9 @@ on: [workflow_dispatch] permissions: write-all +env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + jobs: create-release: runs-on: ubuntu-22.04 @@ -498,6 +501,14 @@ jobs: asset_name: ton-linux-x86_64.zip tag: ${{ steps.tag.outputs.TAG }} + - name: Upload generic smartcont+lib artifact + run: | + mkdir smartcont_lib + cd smartcont_lib + cp -r ../artifacts/ton-x86_64-linux/{smartcont,lib} . + zip -r smartcont_lib.zip . + gh release upload ${{ steps.tag.outputs.TAG }} smartcont_lib.zip + - name: Upload Linux x86-64 single artifact - fift uses: svenstaro/upload-release-action@v2 with: