Skip to content

Commit

Permalink
feat: release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwagner committed Feb 2, 2024
1 parent 1fff1f3 commit 490d734
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
workflow_dispatch:
inputs:
url:
description: "New Manifest URL"
required: true
type: string
sha256:
description: "New Manifest SHA256"
required: true
type: string
version:
description: "New Manifest VERSION"
required: true
type: string

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bump Manifest
run: |
jq '.architecture["64bit"].url |= "${{ inputs.url }}" | .architecture["64bit"].hash |= "${{ inputs.sha256 }}" | .version |= "${{ inputs.version }}"' bucket/lucky.json > bucket/lucky.json
- name: Create PR
uses: peter-evans/create-pull-request@v6
with:
branch: "release/${{ inputs.version }}"
title: "Release ${{ inputs.version }}"
commit-message: "release: bump to ${{ inputs.version }}"
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
# scoop-bucket
# scoop-bucket

```
scoop bucket add lucky https://github.com/luckyframework/scoop-bucket
scoop install lucky
```
4 changes: 0 additions & 4 deletions bucket/lucky.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
{
"##": [
"`scoop bucket add lucky https://github.com/luckyframework/scoop-bucket`",
"`scoop install lucky`"
],
"version": "1.1.0-test2",
"description": "A Crystal command-line tool for generating new Lucky Web Applications",
"homepage": "https://github.com/luckyframework/lucky_cli",
Expand Down

0 comments on commit 490d734

Please sign in to comment.