Skip to content

Commit

Permalink
CHORE: build GHA tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Dec 10, 2023
1 parent 77e8f53 commit fe31b72
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,31 @@ name: build

on:
push:
exclude:
- 'v*'
ignore:
- 'docs/**'
- '.github/**'
- '*.sh'
- '*.md'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.18
go-version: 1.21

- name: GoReleaser Build
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
Expand Down
2 changes: 1 addition & 1 deletion NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Random tidbits that I need to remember for working on fflint

[GoReleaser](https://goreleaser.com/quick-start/) uses tags to trigger releases:
```
git tag -a major.minor.patch -m major.minor.patch
git tag -a vMAJOR.MINOR.PATH -m "major.minor.patch optional description"
git push origin --tags
```

0 comments on commit fe31b72

Please sign in to comment.