diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..b46ffcf --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,30 @@ +name: Release + +on: + push: + tags: + - "v*.*.*" + +permissions: + contents: write + +jobs: + Release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go 1.23.x + uses: actions/setup-go@v5 + with: + go-version: '1.23.x' + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: 'v2.3.2' + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..37ed1f8 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,17 @@ +name: Go Tests + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up Go 1.23.x + uses: actions/setup-go@v5 + with: + go-version: '1.23.x' + - name: Run tests + run: go test -v ./... diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..bd1cff9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog + +## 0.4.0 +### Added +- Add CI for testing and building the project + +## 0.3.0-alpha + +## 0.2.0-alpha + +## 0.1.0-alpha diff --git a/cmd/version.go b/cmd/version.go index 8e5edcb..e88aa32 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -23,7 +23,7 @@ import ( ) const ( - version = "v0.3.0-alpha" + version = "v0.4.0" maintainer = "The InfraZ Authors" )