50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
code: read
|
|
releases: write
|
|
|
|
jobs:
|
|
release:
|
|
name: Build and publish release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
|
|
- name: Setup Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Package release assets
|
|
env:
|
|
VERSION: ${{ github.ref_name }}
|
|
BUILD_DOCKER: "1"
|
|
run: ./scripts/package-release.sh
|
|
|
|
- name: Publish Gitea release
|
|
env:
|
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
GITEA_API_URL: ${{ github.server_url }}/api/v1
|
|
GITEA_REPOSITORY: ${{ github.repository }}
|
|
RELEASE_TAG: ${{ github.ref_name }}
|
|
RELEASE_TARGET: ${{ github.sha }}
|
|
RELEASE_NAME: Browser Fingerprint ${{ github.ref_name }}
|
|
RELEASE_BODY: |
|
|
Automated release built by Gitea Actions.
|
|
|
|
Assets:
|
|
- Runtime bundle with Rust server, frontend dist, schema, and local IP database files.
|
|
- Source archive.
|
|
- Docker image archive when Docker is available on the runner.
|
|
run: ./scripts/publish-gitea-release.sh release/*
|