aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/bun-release-canary.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/bun-release-canary.yml b/.github/workflows/bun-release-canary.yml
index 5e0351a11..2acd920a9 100644
--- a/.github/workflows/bun-release-canary.yml
+++ b/.github/workflows/bun-release-canary.yml
@@ -5,6 +5,37 @@ on:
- cron: "0 14 * * *" # every day at 6am PST
workflow_dispatch:
jobs:
+ sign:
+ name: Sign Release
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: packages/bun-release
+ steps:
+ - id: checkout
+ name: Checkout
+ uses: actions/checkout@v3
+ - id: setup-gpg
+ name: Setup GPG
+ uses: crazy-max/ghaction-import-gpg@v5
+ with:
+ gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
+ passphrase: ${{ secrets.GPG_PASSPHRASE }}
+ - id: setup-bun
+ name: Setup Bun
+ uses: oven-sh/setup-bun@v1
+ with:
+ bun-version: canary
+ - id: bun-install
+ name: Install Dependencies
+ run: bun install
+ - id: bun-run
+ name: Sign Release
+ run: |
+ echo "$GPG_PASSPHRASE" | bun upload-assets -- "canary"
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
npm:
name: Release to NPM
runs-on: ubuntu-latest
@@ -75,6 +106,7 @@ jobs:
docker:
name: Release to Dockerhub
runs-on: ubuntu-latest
+ needs: sign
steps:
- id: checkout
name: Checkout