Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release
on:
push:
tags:
- "v*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
Copy link
Contributor Author

@neinkeinkaffee neinkeinkaffee Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the version in the terraform-provider.

with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ github.token }}
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
builds:
- skip: true

release:
prerelease: auto

changelog:
use: github
filters:
exclude:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excluding automated dependency updates and CI-related commits.

- "^build\\(deps\\)"
- "^Bump"
- "^.github"
- "^.goreleaser"
- "^scripts"
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ func main() {
devices, err := client.Devices().List(context.Background())
}
```

## Releasing

Pushing a tag of the format `vX.Y.Z` will trigger the [release workflow](./.github/workflows/release.yml) which uses
[goreleaser](https://github.com/goreleaser/goreleaser) to build and sign artifacts and generate a
[GitHub release](https://github.com/tailscale/tailscale-client-go-v2/releases).