Skip to content

Commit

Permalink
docs: release 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and tuunit committed Aug 31, 2023
1 parent e07c5eb commit 06c0767
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 15 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ on:
types: [completed]
branches: [main]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'push' || github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true

- uses: actions/setup-go@v3
with:
go-version: ">=1.19.0"
Expand All @@ -37,12 +44,14 @@ jobs:
path: release/*

- name: Publish release
if: startsWith(github.ref, 'refs/tags/')
if: "contains(github.event.head_commit.message, 'docs: release')"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TAG=$(git describe --abbrev=0)
for FILE in release/*.tgz; do
gh release upload ${TAG} ${FILE} --clobber
done
gh release edit ${TAG} --draft=false
gh release edit ${TAG} --latest
5 changes: 3 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true

- uses: actions/setup-python@v4
with:
Expand All @@ -42,12 +43,12 @@ jobs:
mike deploy -b gh-pages -p -F mkdocs.yaml -u next
- name: Run mkdocs release deployment
if: startsWith(github.ref, 'refs/tags/')
if: "contains(github.event.head_commit.message, 'docs: release')"
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
LATEST_TAG=$(git describe --tags | awk -F - '{print $1}'
LATEST_TAG=$(git describe --abbrev=0)
SHORT_VERSION=${LATEST_TAG%.*}
mike deploy -b gh-pages -p -F mkdocs.yaml -u ${SHORT_VERSION} latest
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true

- name: Update and create tag
run: |
Expand All @@ -34,15 +37,13 @@ jobs:
sed -i 's\^version:.*\version: ${{ inputs.version }}\g' plugin.yaml
# Update changelog
sed -i 's\# Changes since\# \g' CHANGELOG.md
sed -i 's\# Changes since .*\# ${{ inputs.version }}\g' CHANGELOG.md
echo -e "# Changes since ${{ inputs.version }}\n$(cat CHANGELOG.md)" > CHANGELOG.md
# Commit, tag and push
git commit -am "docs: release ${{ inputs.version }}"
git tag ${{ inputs.version }}
git push --set-upstream origin release/v${{ inputs.version }}
git push origin ${{ inputs.version }}
git tag ${{ inputs.version }} -am "${{ inputs.version }}"
git push --follow-tags --set-upstream origin release/v${{ inputs.version }}
- name: Create release
env:
Expand All @@ -52,7 +53,7 @@ jobs:
gh release create "${TAG}" \
--title="${TAG}" \
--generate-notes \
--draft
--prerelease
- name: Create PR
env:
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Changes since 1.1.1
# Changes since 1.1.2
# 1.1.2
- chore: dependency upgrades

# 1.1.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ It is requirement to use helm v3.10.0+.
Install a specific version of helm compose (recommended). Click [here](https://github.com/seacrew/helm-compose/releases/latest) for the latest version.

```
helm plugin install https://github.com/seacrew/helm-compose --version 1.1.1
helm plugin install https://github.com/seacrew/helm-compose --version 1.1.2
```

Install the latest version.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![helm-compose-banner](https://user-images.githubusercontent.com/18513179/212496531-1d166236-ed88-411d-8403-ad1f94d28846.png)

[![Build Status](https://github.com/seacrew/helm-compose/actions/workflows/build.yml/badge.svg)](https://github.com/seacrew/helm-compose/actions/workflows/build.yml)
[![Build Status](https://github.com/seacrew/helm-compose/actions/workflows/build.yaml/badge.svg)](https://github.com/seacrew/helm-compose/actions/workflows/build.yaml)
[![Go Report Card](https://goreportcard.com/badge/github.com/seacrew/helm-compose)](https://goreportcard.com/report/github.com/seacrew/helm-compose)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=seacrew_helm-compose&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=seacrew_helm-compose)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=seacrew_helm-compose&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=seacrew_helm-compose)
Expand Down
2 changes: 1 addition & 1 deletion docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Install a specific version (recommended). Click [here](https://github.com/seacrew/helm-compose/releases/latest) for the latest version.

```
helm plugin install https://github.com/seacrew/helm-compose --version 1.1.1
helm plugin install https://github.com/seacrew/helm-compose --version 1.1.2
```

Install latest version.
Expand Down
2 changes: 1 addition & 1 deletion plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: compose
version: 1.1.1
version: 1.1.2
usage: Compose is a helm plugin to define and manage multiple helm releases as single entity.
command: $HELM_PLUGIN_DIR/bin/compose
hooks:
Expand Down

0 comments on commit 06c0767

Please sign in to comment.