File tree Expand file tree Collapse file tree 1 file changed +5
-20
lines changed
Expand file tree Collapse file tree 1 file changed +5
-20
lines changed Original file line number Diff line number Diff line change 11name : Build TDLib Addon binaries
2- # This workflow can be executed using a command like this:
3- # gh workflow run prebuilt-tdlib.yml --ref develop -f tdlib=v1.8.0 \
4- # -f npm-version=0.1008000.0 -f npm-tag=latest -f npm-add-tag=td-1.8.0
2+
53on :
6- workflow_dispatch :
7- inputs :
8- ADDON_VERSION :
9- description : ' version of "tdlib-addon-prebuilt" from package.json'
10- type : string
11- required : true
4+ release :
5+ types :
6+ - created
127
138env :
149 DOCKER_IMAGE_GLIBC : node:16-slim
@@ -134,20 +129,10 @@ jobs:
134129 # # prerelease: # optional
135130 # # Should the release, if created, be marked as a draft? Such releases are generally not publicly visible.
136131 # draft: true
137- - name : Create Release
138- id : create_release
139- uses : actions/create-release@v1
140- env :
141- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
142- with :
143- tag_name : v${{ env.ADDON_VERSION }} # Specify the tag name for the release
144- release_name : Release v${{ env.ADDON_VERSION }} # Specify the release name
145- body : |
146- Release notes and description for v${{ env.ADDON_VERSION }}
147132 - name : Upload to GitHub Releases
148133 uses : actions/upload-release-asset@v1
149134 with :
150- upload_url : ${{ steps.create_release.outputs .upload_url }}
135+ upload_url : ${{ github.event.release .upload_url }}
151136 asset_path : " ./${{ env.TGZ_NAME }}"
152137 asset_name : ${{ env.TGZ_NAME }}
153138 asset_content_type : application/gzip
You can’t perform that action at this time.
0 commit comments