Skip to content

Commit 316de3d

Browse files
authored
feat(cd): remove homemade release script (#6)
## 📃 Summary Now that we have the automated release process, we don't need the custom part anymore
1 parent 85cb257 commit 316de3d

File tree

8 files changed

+12
-97
lines changed

8 files changed

+12
-97
lines changed

.chglog/config.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

.chglog/template.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,13 @@ jobs:
8686
release-type: simple
8787
package-name: YOUR_REPOSITORY_NAME
8888

89-
- name: tag new release
89+
- name: tag stable versions
9090
if: ${{ steps.release.outputs.release_created }}
9191
run: |
9292
git config user.name github-actions[bot]
9393
git config user.email github-actions[bot]@users.noreply.github.com
9494
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
95-
NEXT_TAG="${{ steps.release.outputs.version }}" make release
95+
git tag -d stable || true
96+
git push origin :stable || true
97+
git tag -a stable -m "Last Stable Release"
98+
git push origin stable

CHANGELOG.md

Whitespace-only changes.

Makefile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@ documentation-ci: deps documentation
2929
lint:
3030
stylua .
3131

32-
# runs the release script, go to file to see more details.
33-
release:
34-
./scripts/release.sh
35-
36-
# generates a changelog, used by the `release` script.
37-
changelog:
38-
git-chglog -o CHANGELOG.md -no-case
39-
4032
# setup
4133
setup:
4234
./scripts/setup.sh

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,25 @@
1010

1111
- interactive `setup` script
1212
- README.md template
13-
- GitHub Release script
1413
- Perfect for open-source:
1514
- CODEOWNERS file for PR auto-assign
1615
- Issues and PR templates
17-
- CI with GitHub actions:
16+
- CD leveraging [release-please-action](https://github.com/google-github-actions/release-please-action)
17+
- CI:
1818
- Test running on multiple Neovim version
1919
- Lint check
2020
- Documentation generation check
2121
- Minimal run time, ideal for free plans
2222
- Docs with [mini.nvim `doc` plugin](https://github.com/echasnovski/mini.nvim/blob/main/lua/mini/doc.lua)
2323
- Tests with [mini.nvim `test` plugin](https://github.com/echasnovski/mini.nvim/blob/main/lua/mini/test.lua)
2424
- Linting with [Stylua](https://github.com/JohnnyMorganz/StyLua)
25-
- Changelog with [git-chglog](https://github.com/git-chglog/git-chglog)
2625

2726
## 📋 Installation
2827

2928
> **Note**:
30-
> This section is only required if you wish to use the linter and changelog generator provided by the template.
29+
> This section is only required if you wish to use the linter provided by the template.
3130
3231
- [Install Stylua linter](https://github.com/JohnnyMorganz/StyLua#installation)
33-
- [Install git-chglog generator](https://github.com/git-chglog/git-chglog)
3432

3533
## ☄ Getting started
3634

@@ -93,10 +91,10 @@ mv README_TEMPLATE.md README.md
9391
:vimgrep /your-plugin-name/ **/* .github/**
9492
:cfdo %s/your-plugin-name/my-awesome-plugin/g | update
9593
96-
:vimgrep /YOUR_GITHUB_USERNAME/ .chglog/** .github/** **/*.md
94+
:vimgrep /YOUR_GITHUB_USERNAME/ .github/** **/*.md
9795
:cfdo %s/YOUR_GITHUB_USERNAME/shortcuts/g | update
9896
99-
:vimgrep /YOUR_REPOSITORY_NAME/ .chglog/** **/*.md
97+
:vimgrep /YOUR_REPOSITORY_NAME/ **/*.md
10098
:cfdo %s/YOUR_REPOSITORY_NAME/my-awesome-plugin.nvim/g | update
10199
```
102100

scripts/release.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

scripts/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,5 @@ PASCAL_CASE_PLUGIN_NAME=$(echo "$PLUGIN_NAME" | perl -pe 's/(^|-)./uc($&)/ge;s/-
5454

5555
grep -rl "YourPluginName" .github/ plugin/ tests/ lua/ | xargs sed -i "" -e "s/YourPluginName/$PASCAL_CASE_PLUGIN_NAME/g"
5656
grep -rl "your-plugin-name" README.md .github/ plugin/ tests/ lua/ | xargs sed -i "" -e "s/your-plugin-name/$PLUGIN_NAME/g"
57-
grep -rl "YOUR_GITHUB_USERNAME" README.md .github/ .chglog/ | xargs sed -i "" -e "s/YOUR_GITHUB_USERNAME/$USERNAME/g"
58-
grep -rl "YOUR_REPOSITORY_NAME" README.md .github/ .chglog/ | xargs sed -i "" -e "s/YOUR_REPOSITORY_NAME/$REPOSITORY_NAME/g"
57+
grep -rl "YOUR_GITHUB_USERNAME" README.md .github/ | xargs sed -i "" -e "s/YOUR_GITHUB_USERNAME/$USERNAME/g"
58+
grep -rl "YOUR_REPOSITORY_NAME" README.md .github/ | xargs sed -i "" -e "s/YOUR_REPOSITORY_NAME/$REPOSITORY_NAME/g"

0 commit comments

Comments
 (0)