Skip to content

docs: add sync command and /api/send to skill.md and all READMEs #21

docs: add sync command and /api/send to skill.md and all READMEs

docs: add sync command and /api/send to skill.md and all READMEs #21

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
jobs:
build:
strategy:
matrix:
include:
- os: macos-latest
target: bun-darwin-arm64
artifact: mails-darwin-arm64
- os: macos-latest
target: bun-darwin-x64
artifact: mails-darwin-x64
- os: ubuntu-latest
target: bun-linux-x64
artifact: mails-linux-x64
- os: ubuntu-24.04-arm
target: bun-linux-arm64
artifact: mails-linux-arm64
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: bun build src/cli/index.ts --compile --target=${{ matrix.target }} --outfile ${{ matrix.artifact }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: ${{ matrix.artifact }}
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- uses: softprops/action-gh-release@v2
with:
files: artifacts/*
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- run: npm install -g npm@latest
- run: bun install
- run: bun run build
- run: bun run typecheck
- run: |
bun test test/unit/send.test.ts
bun test test/unit/cli.test.ts test/unit/config.test.ts test/unit/db9.test.ts test/unit/extract-code.test.ts test/unit/index.test.ts test/unit/mime.test.ts test/unit/receive.test.ts test/unit/remote.test.ts test/unit/resend.test.ts test/unit/send-attachments.test.ts test/unit/sqlite.test.ts test/unit/storage-resolver.test.ts test/unit/storage.test.ts test/unit/worker.test.ts test/e2e/flow.test.ts test/e2e/sqlite-search.test.ts
- name: Publish mails
run: npm publish --provenance --access public || true