From 490d734f8758eb2541162371767ad0628d8c313c Mon Sep 17 00:00:00 2001 From: Michael Wagner Date: Fri, 2 Feb 2024 00:09:28 -0500 Subject: [PATCH] feat: release workflow --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ README.md | 7 ++++++- bucket/lucky.json | 4 ---- 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1d35750 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}" diff --git a/README.md b/README.md index 9cc5e1d..649f6c8 100644 --- a/README.md +++ b/README.md @@ -1 +1,6 @@ -# scoop-bucket \ No newline at end of file +# scoop-bucket + +``` +scoop bucket add lucky https://github.com/luckyframework/scoop-bucket +scoop install lucky +``` diff --git a/bucket/lucky.json b/bucket/lucky.json index 47b88e2..30d9a76 100644 --- a/bucket/lucky.json +++ b/bucket/lucky.json @@ -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",