Skip to content

Commit

Permalink
chore(release): Create release v0.1.0 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrongmeal authored Jan 10, 2025
1 parent 4804a21 commit 03293ec
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release
on:
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+*"]
workflow_dispatch:
jobs:
create_release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: mindsers/changelog-reader-action@v2
id: changelog_reader
with:
version: ${{ github.ref_name }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
body: ${{ steps.changelog_reader.outputs.changes }}
- name: Refresh docs
run: curl https://sum.golang.org/lookup/github.com/s2-streamstore/s2-sdk-go@${{ github.ref_name }}
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Changelog

All notable changes to this project will be documented in this file.

## [0.1.0] - 2025-01-10

### Features

- Add retry support
- Add more connection params ([#5](https://github.com/s2-streamstore/s2-sdk-go/issues/5))
- Support read session resumption ([#7](https://github.com/s2-streamstore/s2-sdk-go/issues/7))
- Append record batching ([#8](https://github.com/s2-streamstore/s2-sdk-go/issues/8))

### Documentation

- Add documentation comments for exported functions/types ([#11](https://github.com/s2-streamstore/s2-sdk-go/issues/11))
- Package level documentation ([#12](https://github.com/s2-streamstore/s2-sdk-go/issues/12))
- Add examples ([#13](https://github.com/s2-streamstore/s2-sdk-go/issues/13))
- README ([#16](https://github.com/s2-streamstore/s2-sdk-go/issues/16))

### Miscellaneous Tasks

- Update starwars example with flags ([#4](https://github.com/s2-streamstore/s2-sdk-go/issues/4))
- Add github actions for CI ([#6](https://github.com/s2-streamstore/s2-sdk-go/issues/6))
- *(refactor)* Rearrange files ([#15](https://github.com/s2-streamstore/s2-sdk-go/issues/15))

15 changes: 15 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,18 @@ tasks:
- .out/sync-docs
cmds:
- go build -o .out/sync-docs ./internal/sync-docs/*.go

release:prepare:
requires:
vars: [VERSION]
cmds:
- git cliff --unreleased --tag v{{.VERSION}} --prepend CHANGELOG.md

release:tag:
requires:
vars: [VERSION]
cmds:
- git switch main
- git pull origin main
- git tag v{{.VERSION}}
- echo "Push the tag 'v{{.VERSION}}' to release"

0 comments on commit 03293ec

Please sign in to comment.