Skip to content

Commit

Permalink
Update release workflow (livekit#2795)
Browse files Browse the repository at this point in the history
* Update release workflow

* rename
  • Loading branch information
davidzhao authored Jun 16, 2024
1 parent ecfc42c commit 88a3402
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version-file: "go.mod"

- name: Download Go modules
run: go mod download
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version-file: "go.mod"

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version: 2

before:
hooks:
- go mod tidy
Expand All @@ -31,6 +33,7 @@ builds:
goos:
- linux
- windows

archives:
- format_overrides:
- goos: windows
Expand All @@ -56,4 +59,3 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"

0 comments on commit 88a3402

Please sign in to comment.