Skip to content

Commit 3bc0296

Browse files
committed
Add GitHub release and upload dist.tar.gz
1 parent dc1d7d3 commit 3bc0296

1 file changed

Lines changed: 12 additions & 18 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Build and Release dist.tar.gz
1+
name: Build and Release Function Package
22

33
on:
44
push:
55
tags:
66
- 'v*'
77

88
jobs:
9-
build-and-release:
9+
release:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -23,22 +23,16 @@ jobs:
2323
run: tar -czvf dist.tar.gz dist/
2424

2525
- name: Create GitHub Release
26-
id: create_release
27-
uses: actions/create-release@v1
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
uses: softprops/action-gh-release@v1
3027
with:
31-
tag_name: ${{ github.ref_name }}
32-
release_name: Release ${{ github.ref_name }}
33-
draft: false
34-
prerelease: false
35-
36-
- name: Upload Release Asset
37-
uses: actions/upload-release-asset@v1
28+
files: dist.tar.gz
3829
env:
3930
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
with:
41-
upload_url: ${{ steps.create_release.outputs.upload_url }}
42-
asset_path: dist.tar.gz
43-
asset_name: dist.tar.gz
44-
asset_content_type: application/gzip
31+
32+
- name: Trigger main-app registration
33+
run: |
34+
echo "🚀 Triggering main-app repo via repository_dispatch..."
35+
curl -X POST https://api.github.com/repos/Shashankpgit/main-app/dispatches \
36+
-H "Accept: application/vnd.github+json" \
37+
-H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
38+
-d '{"event_type": "function-package-released"}'

0 commit comments

Comments
 (0)