From 9e275f101ea88a10350110a5029237cfc0e6741d 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 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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..9e7bf0a --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,33 @@ +name: negwm version bump +run-name: ${{ github.actor }} negwm version bumper +on: [push] +jobs: + bump: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.11.5' + cache: 'pip' + - run: git config --global user.name 'Sergey Miroshnichenko' + - run: git config --global user.email 'serg.zorg@gmail.com' + - run: pip install hatch + - run: VERSION=`hatch version` + - run: hatch version release + - run: NEW_VERSION=`hatch version` + - run: git add negwm/__about__.py + - run: 'git commit -m "Bump version: $VERSION → $NEW_VERSION"' + - run: git tag $VERSION + - run: git push + - run: git push --tags + build: + runs-on: ubuntu-latest + steps: + - 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 }}