From 4544e8c6702480928ca096c215a9a5f3788191c7 Mon Sep 17 00:00:00 2001 From: Sergey Miroshnichenko Date: Tue, 7 Nov 2023 19:42:36 +0300 Subject: [PATCH] [github] CI initial commit --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..e1c6df0 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +- name: automatically release master branch + if: github.ref == 'refs/heads/master' + run: | + git config --global user.name 'Sergey Miroshnichenko' + git config --global user.email 'serg.zorg@gmail.com' + VERSION=`hatch version` + hatch version release + NEW_VERSION=`hatch version` + git add negwm/__about__.py + git commit -m "Bump version: $VERSION → $NEW_VERSION" + git tag $VERSION + git push + git push --tags + +- name: build + run: | + python -m build + +# - name: pypi-publish +# if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' +# uses: pypa/gh-action-pypi-publish@v1.1.0 +# with: +# password: ${{ secrets.pypi_password }}