lint workflow yaml file
+---
name: Python package
+# yamllint disable-line rule:truthy
on: [push]
jobs:
@@ -45,12 +47,16 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Build distribution
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ if: >
+ github.event_name == 'push' &&
+ startsWith(github.event.ref, 'refs/tags')
run: |
pip install wheel
poetry build
- name: Publish package
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ if: >
+ github.event_name == 'push' &&
+ startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@e777b333
with:
user: __token__
