Files
gemini-nexus/.github/workflows/publish.yaml
T
2026-01-10 01:17:48 +08:00

44 lines
865 B
YAML

name: Publish Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish:
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Install Node and NPM
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y rpm libsecret-1-dev pkg-config
- name: Install dependencies
run: npm ci
- name: Publish Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish