Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

feat: experiment core pipe build

Louis Beaumont0446c99d03f9
diff --git a/.github/workflows/build-core-pipes.yml b/.github/workflows/build-core-pipes.yml
new file mode 100644
index 000000000..43d55bce1
--- /dev/null
+++ b/.github/workflows/build-core-pipes.yml
@@ -0,0 +1,66 @@
+name: build and release pipes
+
+on:
+ push:
+ paths:
+ - 'pipes/**'
+ branches:
+ - main
+
+jobs:
+ build-pipes:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: setup node
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+
+ - name: setup bun
+ uses: oven-sh/setup-bun@v1
+ with:
+ bun-version: 1.1.43
+
+ - name: get core pipes list
+ id: core-pipes
+ run: |
+ PIPES="memories data-table search timeline identify-speakers"
+ echo "pipes=$PIPES" >> $GITHUB_OUTPUT
+
+ - name: build pipes
+ run: |
+ for pipe in ${{ steps.core-pipes.outputs.pipes }}; do
+ if [ -d "pipes/$pipe" ]; then
+ echo "building $pipe..."
+ cd pipes/$pipe
+
+ bun install
+ bun run build
+
+ # create zip of dist folder
+ cd dist
+ zip -r ../../$pipe.zip .
+ cd ../..
+ fi
+ done
+
+ - name: generate release tag
+ id: tag
+ run: |
+ SHA=$(git rev-parse --short HEAD)
+ echo "tag=pipes-${SHA}" >> $GITHUB_OUTPUT
+
+ - name: create release
+ uses: softprops/action-gh-release@v1
+ with:
+ tag_name: ${{ steps.tag.outputs.tag }}
+ name: pipes build ${{ steps.tag.outputs.tag }}
+ files: |
+ *.zip
+ draft: false
+ prerelease: false
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}