Skip to content

Commit

Permalink
[github] CI initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
neg-serg committed Nov 7, 2023
1 parent ceeaf9d commit 7a52c1c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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 }}

0 comments on commit 7a52c1c

Please sign in to comment.