build: rename push action to release

This commit is contained in:
2023-11-06 23:25:29 +02:00
parent 7d16142b3b
commit 064ac6811c
2 changed files with 24 additions and 2 deletions
+22
View File
@@ -225,3 +225,25 @@ Again, the most checks can be performed by `make check` command, though some add
### Other checks ### Other checks
The projects also uses typing checks (provided by `mypy`) and some linter checks provided by `pylint` and `bandit`. Those checks must be passed successfully for any open pull requests. The projects also uses typing checks (provided by `mypy`) and some linter checks provided by `pylint` and `bandit`. Those checks must be passed successfully for any open pull requests.
## Developers how to
### Run automated checks
```shell
make check tests
```
### Generate documentation templates
```shell
make specification
```
### Create release
```shell
make VERSION=x.y.z check tests release
```
The command above will also run checks first and will generate documentation, tags, etc., and will push them to GitHub. Other things will be handled by GitHub workflows automatically.
+2 -2
View File
@@ -1,4 +1,4 @@
.PHONY: archive archlinux check clean directory html push specification tests version .PHONY: archive archlinux check clean directory html release specification tests version
.DEFAULT_GOAL := archlinux .DEFAULT_GOAL := archlinux
PROJECT := ahriman PROJECT := ahriman
@@ -37,7 +37,7 @@ html: specification
rm -rf docs/html rm -rf docs/html
tox -e docs-html tox -e docs-html
push: specification archlinux release: specification archlinux
git add package/archlinux/PKGBUILD src/ahriman/__init__.py docs/ahriman-architecture.svg package/share/man/man1/ahriman.1 package/share/bash-completion/completions/_ahriman package/share/zsh/site-functions/_ahriman git add package/archlinux/PKGBUILD src/ahriman/__init__.py docs/ahriman-architecture.svg package/share/man/man1/ahriman.1 package/share/bash-completion/completions/_ahriman package/share/zsh/site-functions/_ahriman
git commit -m "Release $(VERSION)" git commit -m "Release $(VERSION)"
git tag "$(VERSION)" git tag "$(VERSION)"