Skip to content

Commit f7debf0

Browse files
committed
ci: add tag-triggered Chrome extension ZIP release
On v* tags: build the chrome target (works with empty credentials, unlike prod), zip the chrome/ output, and publish it as a GitHub release with the built-in token. No external secrets required.
1 parent 70d21aa commit f7debf0

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
name: Build and publish Chrome extension ZIP
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Setup Node.js environment
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
cache: npm
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
env:
28+
PUPPETEER_SKIP_DOWNLOAD: "true"
29+
30+
- name: Build
31+
run: npm run chrome
32+
33+
- name: Package
34+
run: cd chrome && zip -r "../authenticator-chrome-${GITHUB_REF_NAME}.zip" .
35+
36+
- name: Create release
37+
run: gh release create "$GITHUB_REF_NAME" "authenticator-chrome-${GITHUB_REF_NAME}.zip" --title "$GITHUB_REF_NAME" --generate-notes
38+
env:
39+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)