feat: release workflow

This commit is contained in:
2025-03-18 21:21:16 -04:00
parent e857a14fd7
commit 81855d079f
2 changed files with 72 additions and 11 deletions

36
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Release Workflow
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build
run: ts-build
- name: Create release
uses: googleapis/release-please-action@v4
id: release
with:
release-type: simple
- name: Upload release artifacts
if: ${{ steps.release.outputs.release_created }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ steps.release.outputs.tag_name }} ./build/.