Skip to content

Commit

Permalink
feat: add GitHub release creation and asset upload to macOS build wor…
Browse files Browse the repository at this point in the history
…kflow
  • Loading branch information
arian24b committed Feb 13, 2025
1 parent cfeccb2 commit 0ca7393
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,23 @@ jobs:
- name: Verify build
run: |
ls -l /usr/local/bin/telegram-bot-api*
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: v1.0.${{ github.run_number }}
name: Release v1.0.${{ github.run_number }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: success()

- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
files: /usr/local/bin/telegram-bot-api*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: success()

0 comments on commit 0ca7393

Please sign in to comment.