Files
gemini-nexus/.github/workflows/publish.yaml
T

47 lines
1.1 KiB
YAML

name: Publish Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
strategy:
fail-fast: false
matrix:
os: [windows-latest, windows-11-arm, macos-latest, macos-14, 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 }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
run: npm run publish