diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 99c3c3b8..65e01ce0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,8 +15,9 @@ jobs: name: pypi url: https://pypi.org/project/mkdocs-rss-plugin/ permissions: + contents: write id-token: write # IMPORTANT: this permission is mandatory for trusted publishing - + discussions: write steps: - uses: actions/checkout@v4 @@ -30,7 +31,7 @@ jobs: - name: Install dependencies run: | - python -m pip install --upgrade pip + python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade -r requirements.txt python -m pip install --upgrade build @@ -60,6 +61,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v1 with: + discussion_category_name: announcements fail_on_unmatched_files: true files: dist/* generate_release_notes: true