From dcfdec381a9ec51a7d1668e6bfc443c74f41050c Mon Sep 17 00:00:00 2001 From: AislingHPE <143514178+AislingHPE@users.noreply.github.com> Date: Fri, 23 Aug 2024 11:47:25 +0100 Subject: [PATCH] Add GoReleaser workflow (#13) This should be manually triggered in the actions tab whenever you want to release a new version. --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ README | 5 +---- 2 files changed, 32 insertions(+), 4 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..cb8cb44 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release + +on: + workflow_dispatch: + inputs: + tag: + description: 'New tag name' + required: true + +permissions: + contents: write + +jobs: + goreleaser: + name: GoReleaser + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Create Tag + run: git tag ${{ github.event.inputs.tag }} + - uses: actions/setup-go@v5 + with: + go-version: '1.22' + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/README b/README index 96b1211..46ce70c 100644 --- a/README +++ b/README @@ -1,8 +1,5 @@ # TODO list -- Add the command line - Add README including usage instructions, and a description of how the project actually works -- Consider making a github action for this - Add a make rule to make a binary -- Goreleaser? -- Check github settings eg. branch protection +- copyright check action?