From b3aa451f894a1972a125ace0272a0b73b22b7e5f Mon Sep 17 00:00:00 2001 From: Chris Chrome Date: Tue, 3 Jun 2025 11:00:07 -0600 Subject: [PATCH] Add actions --- .forgejo/actions.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .forgejo/actions.yml diff --git a/.forgejo/actions.yml b/.forgejo/actions.yml new file mode 100644 index 0000000..2f97699 --- /dev/null +++ b/.forgejo/actions.yml @@ -0,0 +1,32 @@ +name: Build and Release + +on: + push: + tags: + - 'v*' + +jobs: + build-and-release: + runs-on: ubuntu-latest + 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: softprops/action-gh-release@v1 + with: + files: | + dist/webhook-proxy-client-macos + dist/webhook-proxy-client-linux + dist/webhook-proxy-client-win.exe + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}