fix: update release workflow to use latest tag

This commit is contained in:
Prad Nukala 2024-10-01 16:41:26 -04:00
parent e8218d77a4
commit 45602058f6
5 changed files with 22 additions and 73 deletions

View File

@ -2,6 +2,6 @@
name = "cz_conventional_commits" name = "cz_conventional_commits"
tag_format = "v$version" tag_format = "v$version"
version_scheme = "semver" version_scheme = "semver"
version = "0.10.0" version = "0.4.0"
update_changelog_on_bump = true update_changelog_on_bump = true
major_version_zero = true major_version_zero = true

View File

@ -36,3 +36,4 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
GITHUB_PERSONAL_AUTH_TOKEN: ${{ secrets.GH_PAT_TOKEN }}

View File

@ -19,21 +19,37 @@ jobs:
with: with:
go-version: "1.22" go-version: "1.22"
check-latest: true check-latest: true
- name: Run tests - name: Run tests
run: make test run: make test
check-protos:
name: "Check Protobuf Breaking Changes"
runs-on: ubuntu-latest
continue-on-error: true
outputs:
has_breaking_changes: ${{ steps.check_breaking.outputs.has_breaking_changes }}
steps:
- uses: actions/checkout@v4
- uses: bufbuild/buf-setup-action@v1
- id: check_breaking
uses: bufbuild/buf-breaking-action@v1
with:
against: "https://github.com/onsonr/sonr.git#branch=master"
- name: Set output
run: echo "has_breaking_changes=${{ steps.check_breaking.outcome == 'failure' }}" >> $GITHUB_OUTPUT
bump-version: bump-version:
if: "!startsWith(github.event.head_commit.message, 'bump:')" needs: [run-tests, check-protos]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "Bump Version" name: "Bump Version"
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 fetch-depth: 0
- name: Create bump and changelog - name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master uses: commitizen-tools/commitizen-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
increment: ${{ needs.check-protos.outputs.has_breaking_changes == 'true' && 'MINOR' || 'PATCH' }}

View File

@ -80,6 +80,7 @@ brews:
owner: onsonr owner: onsonr
name: homebrew-tap name: homebrew-tap
branch: master branch: master
token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}"
- name: motr - name: motr
ids: [motr] ids: [motr]

View File

@ -1,72 +1,3 @@
## v0.10.0 (2024-10-01)
### Feat
- allow manual release triggers
### Fix
- **versioning**: revert version to 0.9.0
## v0.9.0 (2024-10-01)
### Feat
- add Input and RegistrationForm models
- add new utility classes
- add login and registration pages
- add tailwindcss utilities
### Fix
- **cta**: Fix typo in CTA title
- change bento section title to reflect security focus
### Refactor
- move home page sections to home package
## v0.8.0 (2024-10-01)
### Feat
- add support for ARM64 architecture
## v0.7.0 (2024-10-01)
### Feat
- add DWN resolver field
- add stats section to homepage
- implement hero section using Pkl
- add PKL schema for message formats
### Fix
- adjust hero image dimensions
- **Input**: Change type from to
- update hero image height in config.pkl
### Refactor
- rename motrd to motr
- update hero image dimensions
- move nebula configuration to static file
- rename buf-publish.yml to publish-assets.yml
- remove unused field from
## v0.6.0 (2024-09-30)
### Feat
- add Homebrew tap for sonr
## v0.5.0 (2024-09-30)
### Feat
- update release workflow to use latest tag
## v0.4.0 (2024-09-30) ## v0.4.0 (2024-09-30)
### Feat ### Feat