Skip to content

Commit

Permalink
ci: Auto release to scoop
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Jan 16, 2023
1 parent b2ef54d commit 11ff852
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: siketyan/release-to-registry-action@7e2a91ef78e61dccdb2e8b9401ae54ec58fab4fc
- name: Release to Homebrew Tap
uses: siketyan/release-to-registry-action@7e2a91ef78e61dccdb2e8b9401ae54ec58fab4fc
with:
path: 'Formula/ghr.rb'
assets: |-
Expand All @@ -165,3 +166,18 @@ jobs:
branch: 'ghr/${{ github.event.release.tag_name }}'
author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
committer: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'

- name: Release to Scoop Bucket
uses: siketyan/release-to-registry-action@7e2a91ef78e61dccdb2e8b9401ae54ec58fab4fc
with:
path: 'ghr.json'
assets: |-
windows_x86_64=ghr-x86_64-pc-windows-msvc.tar.gz
message: 'feat(ghr): Release ${{ github.event.release.tag_name }}'
template: './resources/scoop/ghr.json.mustache'
token: '${{ secrets.SCOOP_BUCKET_TOKEN }}'
hash: 'sha256'
targetRepo: 'scoop-bucket'
branch: 'ghr/${{ github.event.release.tag_name }}'
author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
committer: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>'
16 changes: 16 additions & 0 deletions resources/scoop/ghr.json.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": "{{tag_without_v}}",
"description": "Yet another repository management with auto-attaching profiles",
"homepage": "https://github.com/siketyan/ghr",
"license": {
"identifier": "MIT",
"url": "https://github.com/siketyan/ghr/blob/main/LICENCE.md"
},
"architecture": {
"64bit": {
"url": "{{{assets.windows_x86_64.browser_download_url}}}",
"hash": "{{assets.windows_x86_64.hash}}"
}
},
"bin": "ghr.exe"
}

0 comments on commit 11ff852

Please sign in to comment.