This commit is contained in:
Guilhem Saurel 2023-03-07 13:22:35 +01:00
parent 7eba044844
commit 4c677e7cdb
3 changed files with 9 additions and 9 deletions

View File

@ -6,9 +6,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: pip
with:
python-version: '3.10'
cache: pip
- run: python -m pip install -U pip
- run: python -m pip install .
- run: matrix-webhook -h

View File

@ -7,9 +7,9 @@ jobs:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: poetry
with:
python-version: '3.10'
cache: poetry
- run: poetry install --with dev --no-interaction
- run: poetry run flake8 .
- run: poetry run black .

View File

@ -12,9 +12,9 @@ jobs:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: poetry
with:
python-version: '3.10'
cache: poetry
- run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }}
- run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- run: gh release create -t "Release ${{ env.TAG}}" -n "$(awk '/## \[${{ env.TAG }}] - /{flag=1;next}/## \[/{flag=0}flag' CHANGELOG.md)" ${{ env.TAG }} dist/*