-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.46 KB
/
W2-Build.yml
File metadata and controls
50 lines (42 loc) · 1.46 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
50
name: W2 Build
on:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Package extension
run: bun run pack
- name: Upload extension artifact
uses: actions/upload-artifact@v4
with:
name: Clean-Autofill
path: dist/Clean-Autofill.zip
retention-days: 30
- name: Generate build report
run: |
echo "## Build Report" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Extension Details" >> $GITHUB_STEP_SUMMARY
echo "- **Package**: dist/Clean-Autofill.zip" >> $GITHUB_STEP_SUMMARY
echo "- **Size**: $(du -h dist/Clean-Autofill.zip | cut -f1)" >> $GITHUB_STEP_SUMMARY
echo "- **Files**: $(unzip -l dist/Clean-Autofill.zip | tail -1 | awk '{print $2}')" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Manifest Info" >> $GITHUB_STEP_SUMMARY
python3 -c "
import json
with open('manifest.json', 'r') as f:
m = json.load(f)
print(f\"- **Version**: {m.get('version')}\")
print(f\"- **Name**: {m.get('name')}\")
print(f\"- **Permissions**: {', '.join(m.get('permissions', []))}\")
" >> $GITHUB_STEP_SUMMARY