Skip to content

[github] CI initial commit #1

[github] CI initial commit

[github] CI initial commit #1

Workflow file for this run

- name: automatically release master branch

Check failure on line 1 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

You have an error in your yaml syntax on line 1
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 }}