webhook-proxy-client/.forgejo/workflows/release.yml
Christopher Cookman 88a7e2f6da
All checks were successful
Build and Release / build-and-release (push) Successful in 1m26s
v1.0.0-release
2025-06-03 11:26:46 -06:00

35 lines
848 B
YAML

name: Build and Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
# This workflow builds the webhook-proxy-client binaries and creates a GitHub release
# when a new tag is pushed or manually triggered.
jobs:
build-and-release:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build binaries with pkg
run: |
npx pkg index.js --targets node18-macos-x64,node18-linux-x64,node18-win-x64 --output dist/webhook-proxy-client
env:
PKG_CACHE_PATH: .pkg-cache
- name: Create release
uses: actions/forgejo-release@v2.6.0
with:
direction: upload
release-dir: dist/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}