Add hello.sh shell script #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"}' |