Skip to content

Commit

Permalink
chore: Schedule python/node bindings builds (#2404)
Browse files Browse the repository at this point in the history
  • Loading branch information
scsmithr authored Jan 11, 2024
1 parent 5f94acc commit 3a6686a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/nodejs-release.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: nodejs-release
env:
DEBUG: napi:*
APP_NAME: "glaredb"
MACOSX_DEPLOYMENT_TARGET: "10.13"
PROTOC: "${{ github.workspace }}/deps/protoc/bin/protoc"
permissions:
contents: write
id-token: write
# Build and publish nodejs bindings.
#
# Publishing only happens for tag pushes with the tag beginning with 'v'.
name: nodejs release

on:
schedule:
# Run every Monday at 12:00
- cron: 0 12 * * 1
push:
tags:
- "*"
workflow_dispatch:

defaults:
run:
working-directory: bindings/nodejs

concurrency:
group: nodejs-release-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
id-token: write

env:
DEBUG: napi:*
APP_NAME: "glaredb"
MACOSX_DEPLOYMENT_TARGET: "10.13"
PROTOC: "${{ github.workspace }}/deps/protoc/bin/protoc"

jobs:
build:
strategy:
Expand Down Expand Up @@ -127,6 +138,7 @@ jobs:

publish:
name: Publish
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
runs-on: ubuntu-2004-8-cores
needs:
- build
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/python-release.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
# Build and publish python bindings.
#
# Publishing only happens for tag pushes with the tag beginning with 'v'.
name: python release

on:
push:
tags:
- "*"
schedule:
# Run every Monday at 12:00
- cron: 0 12 * * 1
workflow_dispatch:

permissions:
contents: read

env:
PYTHON_VERSION: "3.7"
MATURIN_VERSION: "1.0.1"
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
MATURIN_USERNAME: "seanglaredb"
PROTOC: "${{ github.workspace }}/deps/protoc/bin/protoc"

jobs:
linux:
runs-on: ubuntu-2004-8-cores
Expand Down Expand Up @@ -104,6 +112,7 @@ jobs:

release:
name: Release
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: [linux, macos, windows]
steps:
Expand Down

0 comments on commit 3a6686a

Please sign in to comment.