diff options
author | 2023-02-12 13:10:10 -0800 | |
---|---|---|
committer | 2023-02-12 13:10:10 -0800 | |
commit | bb2aaa36fb9e673b23f60345fbba39b5ccc3d3f0 (patch) | |
tree | b8676f5a81874617cc65fe03721e3444f860d9ef | |
parent | f4f88701c532ebcd6d9f4aab722a5f986c661df2 (diff) | |
download | bun-bb2aaa36fb9e673b23f60345fbba39b5ccc3d3f0.tar.gz bun-bb2aaa36fb9e673b23f60345fbba39b5ccc3d3f0.tar.zst bun-bb2aaa36fb9e673b23f60345fbba39b5ccc3d3f0.zip |
Add release signing to release workflow
-rw-r--r-- | .github/workflows/bun-release.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.github/workflows/bun-release.yml b/.github/workflows/bun-release.yml index 6fbf4723e..b8b1894a6 100644 --- a/.github/workflows/bun-release.yml +++ b/.github/workflows/bun-release.yml @@ -11,6 +11,39 @@ on: description: The tag to publish required: true 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-env + name: Setup Environment + run: | + TAG="${{ github.event.inputs.tag }}" + TAG="${TAG:-"${{ github.event.release.tag_name }}"}" + echo "Setup tag: ${TAG}" + echo "TAG=${TAG}" >> ${GITHUB_ENV} + - id: setup-bun + name: Setup Bun + uses: oven-sh/setup-bun@v0.1.8 + with: + bun-version: canary + github-token: ${{ secrets.GITHUB_TOKEN }} + - id: bun-install + name: Install Dependencies + run: bun install + - id: bun-run + name: Sign Release + run: | + echo "$GPG_PASSPHRASE" | bun upload-assets -- "${{ env.TAG }}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} npm: name: Release to NPM runs-on: ubuntu-latest @@ -90,6 +123,7 @@ jobs: docker: name: Release to Dockerhub runs-on: ubuntu-latest + needs: sign steps: - id: checkout name: Checkout |