Skip to content

Commit

Permalink
Add GoReleaser workflow
Browse files Browse the repository at this point in the history
This should be manually triggered in the actions tab whenever you want to release a new version.
  • Loading branch information
AislingHPE committed Aug 23, 2024
1 parent e95a8b5 commit ede1e82
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
workflow_dispatch:
inputs:
tag:
description: 'New tag name'
required: true

permissions:
contents: read

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
5 changes: 1 addition & 4 deletions README
Original file line number Diff line number Diff line change
@@ -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?

0 comments on commit ede1e82

Please sign in to comment.