From d063a8b4fcdf2fa3a56c2a7bbaa6fd87138c6617 Mon Sep 17 00:00:00 2001 From: Raunak Madan Date: Tue, 31 Dec 2024 00:15:03 +0530 Subject: [PATCH] Update cd.yml and jrelease.yml --- .github/workflows/cd.yaml | 7 ++++--- jreleaser.yml | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 34713637..79beac9e 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -99,9 +99,9 @@ jobs: JRELEASER_PROJECT_VERSION: ${{ steps.extract-version.outputs.version }} JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Generate Homebrew token + - name: Generate token uses: tibdex/github-app-token@v2 - id: generate_homebrew_token + id: generate_token with: app_id: ${{ secrets.GORELEASER_APP_ID }} private_key: ${{ secrets.GORELEASER_APP_PRIVKEY }} @@ -114,7 +114,8 @@ jobs: env: JRELEASER_PROJECT_VERSION: ${{ steps.extract-version.outputs.version }} JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ steps.generate_homebrew_token.outputs.token }} + JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} + JRELEASER_SCOOP_GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} - name: Archive output if: always() diff --git a/jreleaser.yml b/jreleaser.yml index aa342e9f..28a92b5f 100644 --- a/jreleaser.yml +++ b/jreleaser.yml @@ -54,3 +54,18 @@ packagers: skipTemplates: - cask.rb.tpl - README.md.tpl + + scoop: + active: RELEASE + repository: + active: RELEASE + owner: jenkins-infra + name: scoop-bucket + tagName: '{{distributionName}}-{{projectVersion}}' + commitAuthor: + name: jenkins-infra + email: jenkins-infra-team@googlegroups.com + extraProperties: + skipLicenseFile: true + skipTemplates: + - scoop-bucket/README.md.tpl