This repository was archived by the owner on Aug 7, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (42 loc) · 1.37 KB
/
Copy pathrelease.yml
File metadata and controls
49 lines (42 loc) · 1.37 KB
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
39
40
41
42
43
44
45
46
47
48
49
name: Release
on:
push:
branches:
- master
- main
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Read version from manifest
id: version
run: echo "version=$(jq -r .version manifest.json)" >> "$GITHUB_OUTPUT"
- name: Check if tag already exists
id: tag_check
run: |
if git ls-remote --tags origin "refs/tags/v${{ steps.version.outputs.version }}" | grep -q .; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- name: Package extension
if: steps.tag_check.outputs.exists == 'false'
run: |
zip -r "beespy-v${{ steps.version.outputs.version }}.zip" . \
--exclude ".git/*" \
--exclude ".github/*" \
--exclude ".claude/*" \
--exclude "*.log" \
--exclude "node_modules/*" \
--exclude "docs/*"
- name: Create release
if: steps.tag_check.outputs.exists == 'false'
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.version.outputs.version }}
name: v${{ steps.version.outputs.version }}
files: beespy-v${{ steps.version.outputs.version }}.zip
generate_release_notes: true