File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 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+ web-features-manifest-for-$GITHUB_SHA \
46+ --repo="$GITHUB_REPOSITORY" \
47+ --title="WEB_FEATURES_MANIFEST for $GITHUB_SHA" \
48+ WEB_FEATURES_MANIFEST.json.*
You can’t perform that action at this time.
0 commit comments