Skip to content

Commit

Permalink
chore: setup release-please (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola authored Dec 18, 2023
1 parent b88b787 commit 9a41ee9
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 135 deletions.
31 changes: 0 additions & 31 deletions .chglog/CHANGELOG.md.tpl

This file was deleted.

23 changes: 0 additions & 23 deletions .chglog/config.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"bootstrap-sha": "f962fef7dc6d573cf6dbc54dff5a22f7f38414c9",
"include-component-in-tag": false,
"packages": {
".": {
"release-type": "python",
"package-name": "pyzabbix"
}
}
}
1 change: 1 addition & 0 deletions .github/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"1.3.0"}
16 changes: 16 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release please

on:
push:
branches: [master]

jobs:
release-please:
if: github.repository == 'lukecyca/pyzabbix'

runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
2 changes: 0 additions & 2 deletions .hgtags

This file was deleted.

1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ repos:
hooks:
- id: prettier
files: \.(md|yml|yaml|json)$
exclude: (\.github/release-please-manifest\.json|CHANGELOG\.md)$

- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Changelog

<a name="1.3.0"></a>

## [1.3.0](https://github.com/lukecyca/pyzabbix/compare/1.2.1...1.3.0) (2023-04-08)
Expand Down
9 changes: 0 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,5 @@ e2e: $(VENV)
build: $(VENV)
$(VENV)/bin/python -m build .

release:
./scripts/release.sh

changelog:
git-chglog --output CHANGELOG.md 1.1.0..
if command -v npx > /dev/null; then npx prettier --write CHANGELOG.md; fi
git add CHANGELOG.md
git commit -m "docs: regenerate changelog"

clean:
rm -Rf $(VENV) dist
14 changes: 0 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,6 @@ make install
source .venv/bin/activate
```

### Releases

To release a new version, first bump the version number in `setup.py` by hand and run the release target:

```sh
make release
```

Finally, push the release commit and tag to publish them to Pypi:

```sh
git push --follow-tags
```

## License

LGPL 2.1 http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html
Expand Down
56 changes: 0 additions & 56 deletions scripts/release.sh

This file was deleted.

0 comments on commit 9a41ee9

Please sign in to comment.