Skip to content

Commit b20ba30

Browse files
authored
Merge pull request #61 from import-ai/feat/ci
feat(ci): Add release ci
2 parents 963b39d + 7ba73be commit b20ba30

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Release Webhook
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
webhook:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Get version identifier
13+
id: get_version
14+
run: |
15+
echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
16+
17+
- name: Call webhook
18+
run: |
19+
curl "${{ secrets.DEV_WEBHOOK_URL }}/prod?tag=${{ steps.get_version.outputs.version }}" \
20+
-H "Authorization: Bearer ${{ secrets.DEV_WEBHOOK_API_KEY }}"

0 commit comments

Comments
 (0)