Skip to content

Commit fe004aa

Browse files
authored
Update build-binaries.yml
1 parent d9cd83c commit fe004aa

File tree

1 file changed

+5
-20
lines changed

1 file changed

+5
-20
lines changed

.github/workflows/build-binaries.yml

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
name: 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+
53
on:
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

138
env:
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

0 commit comments

Comments
 (0)