Skip to content

Commit

Permalink
build: Try to set up semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
nickderobertis committed Aug 3, 2024
1 parent c351ae4 commit 9956450
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Release

on:
push:
tags:
- "v*.*.*"
branches:
- main
- alpha
- beta

jobs:
release:
Expand Down Expand Up @@ -37,7 +39,11 @@ jobs:
working-directory: ./provider/provider
run: go mod tidy

- name: Run GoReleaser
working-directory: provider
run: |
curl -sL https://git.io/goreleaser | bash
- name: Semantic Release
id: semantic-release
uses: cycjimmy/semantic-release-action@v3

- uses: goreleaser/goreleaser-action@v4
with:
version: "~> v2"
args: release
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ signs:
- "${artifact}"

release:
github:
prerelease: auto
extra_files:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
14 changes: 14 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
branches:
- "+([0-9])?(.{+([0-9]),x}).x"
- main
- name: beta
prerelease: true
- name: alpha
prerelease: true

repositoryUrl: https://github.com/petsinc/terraform-provider-telnyx

plugins:
- "@semantic-release/commit-analyzer"
- "@semantic-release/release-notes-generator"
- "@semantic-release/github"

0 comments on commit 9956450

Please sign in to comment.