Skip to content

Commit 420f45f

Browse files
committed
Prototype
1 parent dd54213 commit 420f45f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Create a release for the web-features manifest file
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Release web-features manifest
14+
runs-on: ubuntu-24.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Install Python dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r tools/web-features/requirements.txt
23+
24+
- name: Generate manifest
25+
run: |
26+
./tools/web-features/lint.py --manifest WEB_FEATURES_MANIFEST.json
27+
28+
- name: Compress manifest (bz2)
29+
run: |
30+
tar --bzip2 -cvf WEB_FEATURES_MANIFEST.json.bz2 WEB_FEATURES_MANIFEST.json
31+
32+
- name: Compress manifest (gz)
33+
run: |
34+
tar --gzip -cvf WEB_FEATURES_MANIFEST.json.gz WEB_FEATURES_MANIFEST.json
35+
36+
- name: Compress manifest (zst)
37+
run: |
38+
tar --zstd -cvf WEB_FEATURES_MANIFEST.json.zst WEB_FEATURES_MANIFEST.json
39+
40+
- name: Create release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: |
44+
gh release create \
45+
--repo="$GITHUB_REPOSITORY" \
46+
WEB_FEATURES_MANIFEST.json.*

0 commit comments

Comments
 (0)