Skip to content

Workflow file for this run

name: Publish and Release
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Poetry
run: |
python -m pip install --upgrade pip
python -m pip install poetry
- name: Build and publish to PyPI
run: |
poetry build
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}
- name: Create GitHub Release
permissions:

Check failure on line 30 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish and Release

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 30, Col: 7): Unexpected value 'permissions' .github/workflows/publish.yml (Line: 33, Col: 7): 'uses' is already defined
contents: write
uses: actions/checkout@v4
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: 'Description of the release'
draft: false
prerelease: false