-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 963 Bytes
/
release.yml
File metadata and controls
38 lines (30 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Build and Release Function Package
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create dist directory
run: mkdir dist
- name: Copy source code to dist
run: cp -r src dist/
- name: Create dist.tar.gz
run: tar -czvf dist.tar.gz dist/
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger main-app registration
run: |
echo "🚀 Triggering main-app repo via repository_dispatch..."
curl -X POST https://api.github.com/repos/Shashankpgit/main-app/dispatches \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ secrets.PERSONAL_ACCESS_TOKEN }}" \
-d '{"event_type": "function-package-released"}'