Skip to content

Commit

Permalink
feat(cd): remove homemade release script (#6)
Browse files Browse the repository at this point in the history
## 📃 Summary

Now that we have the automated release process, we don't need the custom
part anymore
  • Loading branch information
shortcuts authored Jan 5, 2023
1 parent 85cb257 commit 316de3d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 97 deletions.
28 changes: 0 additions & 28 deletions .chglog/config.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .chglog/template.md

This file was deleted.

7 changes: 5 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,13 @@ jobs:
release-type: simple
package-name: YOUR_REPOSITORY_NAME

- name: tag new release
- name: tag stable versions
if: ${{ steps.release.outputs.release_created }}
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git"
NEXT_TAG="${{ steps.release.outputs.version }}" make release
git tag -d stable || true
git push origin :stable || true
git tag -a stable -m "Last Stable Release"
git push origin stable
Empty file removed CHANGELOG.md
Empty file.
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ documentation-ci: deps documentation
lint:
stylua .

# runs the release script, go to file to see more details.
release:
./scripts/release.sh

# generates a changelog, used by the `release` script.
changelog:
git-chglog -o CHANGELOG.md -no-case

# setup
setup:
./scripts/setup.sh
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,25 @@

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

## 📋 Installation

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

## ☄ Getting started

Expand Down Expand Up @@ -93,10 +91,10 @@ mv README_TEMPLATE.md README.md
:vimgrep /your-plugin-name/ **/* .github/**
:cfdo %s/your-plugin-name/my-awesome-plugin/g | update
:vimgrep /YOUR_GITHUB_USERNAME/ .chglog/** .github/** **/*.md
:vimgrep /YOUR_GITHUB_USERNAME/ .github/** **/*.md
:cfdo %s/YOUR_GITHUB_USERNAME/shortcuts/g | update
:vimgrep /YOUR_REPOSITORY_NAME/ .chglog/** **/*.md
:vimgrep /YOUR_REPOSITORY_NAME/ **/*.md
:cfdo %s/YOUR_REPOSITORY_NAME/my-awesome-plugin.nvim/g | update
```

Expand Down
22 changes: 0 additions & 22 deletions scripts/release.sh

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ PASCAL_CASE_PLUGIN_NAME=$(echo "$PLUGIN_NAME" | perl -pe 's/(^|-)./uc($&)/ge;s/-

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

0 comments on commit 316de3d

Please sign in to comment.