mirror of
https://github.com/DIYgod/RSSHub-Radar.git
synced 2026-11-28 10:36:55 +08:00
- Upgrade WXT, React, TypeScript, Tailwind CSS and other packages to latest - Migrate Tailwind CSS to v4 and the PostCSS plugin - Update GitHub Actions to their latest major versions - Add typecheck and format check scripts
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
env:
|
|
WXT_UMAMI_ID: ${{ vars.WXT_UMAMI_ID || vars.PLASMO_PUBLIC_UMAMI_ID }}
|
|
WXT_UMAMI_URL: ${{ vars.WXT_UMAMI_URL || vars.PLASMO_PUBLIC_UMAMI_URL }}
|
|
WXT_UMAMI_SAMPLE_RATE: ${{ vars.WXT_UMAMI_SAMPLE_RATE || vars.PLASMO_PUBLIC_UMAMI_SAMPLE_RATE }}
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
name: Build assets
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: pnpm/action-setup@v6
|
|
with:
|
|
version: 12.16.1
|
|
run_install: false
|
|
- name: Use Node.js 24.x
|
|
uses: actions/setup-node@v7
|
|
with:
|
|
node-version: 24.x
|
|
cache: "pnpm"
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Package the extension for Chrome
|
|
run: pnpm zip
|
|
- name: Package the extension for Firefox
|
|
run: pnpm zip:firefox
|
|
- name: Package the extension for Safari
|
|
run: pnpm build:safari:zip
|
|
- name: Upload file
|
|
uses: xresloader/upload-to-github-release@v1.6.2
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: "build/chrome-mv3-prod.zip;build/firefox-mv3-prod.zip;build/safari-mv3-prod.zip"
|
|
tags: true
|
|
draft: false
|