From 216ec8cc1ac60fbecbb541b77e6a23ec4ff8942d Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Tue, 19 Jul 2022 10:27:55 -0700 Subject: [PATCH] Release 0.10.0 --- .github/workflows/ci.yml | 26 +++++++++++++++++++++++--- .gitignore | 4 +++- .goreleaser.yaml | 10 ++++++++++ CHANGELOG.md | 14 +++++++++++++- 4 files changed, 49 insertions(+), 5 deletions(-) create mode 100644 .goreleaser.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91cc7f41..4bb3422e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,8 @@ on: paths-ignore: - '**.md' - 'LICENSE' + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' pull_request: branches: - main @@ -28,9 +30,7 @@ jobs: build: name: Build Client runs-on: ubuntu-20.04 - if: - github.event.pull_request.head.repo.full_name == 'nginxinc/nginx-plus-go-client' || - github.event_name == 'push' || github.event_name == 'schedule' + if: ${{ github.event.repository.fork == false }} steps: - name: Checkout Repository uses: actions/checkout@v3 @@ -69,3 +69,23 @@ jobs: run: make test env: NGINX_PLUS_VERSION: nightly + + release: + name: Release + runs-on: ubuntu-20.04 + if: ${{ startsWith(github.ref, 'refs/tags/') }} + steps: + - name: Publish Release Notes + uses: release-drafter/release-drafter@v5 + with: + publish: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v3 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_COMMUNITY }} diff --git a/.gitignore b/.gitignore index 525a5479..7b57f9e7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ *.key # Visual Studio Code settings -.vscode \ No newline at end of file +.vscode + +dist diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 00000000..238e5770 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,10 @@ +builds: + - skip: true + +changelog: + skip: true + +announce: + slack: + enabled: true + channel: '#general' diff --git a/CHANGELOG.md b/CHANGELOG.md index 03cf5de1..8f359b9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## 0.10.0 (Jul 19, 2022) + +An automatically generated list of changes can be found on GitHub at: [0.10.0 Release](https://github.com/nginxinc/nginx-plus-go-client/releases/tag/v0.10.0) + +## 0.9.0 (Sep 28, 2021) + +An automatically generated list of changes can be found on GitHub at: [0.9.0 Release](https://github.com/nginxinc/nginx-plus-go-client/releases/tag/v0.9.0) + +## 0.8.0 (Nov 26, 2020) + +An automatically generated list of changes can be found on GitHub at: [0.8.0 Release](https://github.com/nginxinc/nginx-plus-go-client/releases/tag/v0.8.0) + ## 0.7.0 (Jul 10, 2020) FEATURES: * [38](https://github.com/nginxinc/nginx-plus-go-client/pull/38): *Support for /slabs API endpoint*. The client now supports retrieving shared memory zone usage info. @@ -42,7 +54,7 @@ CHANGES: ## 0.3 (May 29, 2019) FEATURES: -* [20](https://github.com/nginxinc/nginx-plus-go-client/pull/20): *Support for stream zone sync metrics*. The client `GetStats` method now additionally returns stream zone sync metrics. +* [20](https://github.com/nginxinc/nginx-plus-go-client/pull/20): *Support for stream zone sync metrics*. The client `GetStats` method now additionally returns stream zone sync metrics. * [13](https://github.com/nginxinc/nginx-plus-go-client/pull/13): *Support for key-value endpoints*. The client implements a set of methods to create/modify/delete key-val pairs for both http and stream contexts. * [12](https://github.com/nginxinc/nginx-plus-go-client/pull/12) *Support for NGINX status info*. The client `GetStats` method now additionally returns NGINX status metrics. Thanks to [jthurman42](https://github.com/jthurman42).