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: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.10'
cache: pip cache: pip
- run: python -m pip install -U pip - run: python -m pip install -U pip
- run: python -m pip install . - run: python -m pip install .
- run: matrix-webhook -h - run: matrix-webhook -h

View File

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

View File

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