diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e18378a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release and upload artifacts +permissions: + contents: write + discussions: write +on: workflow_dispatch +jobs: + release: + name: Release + runs-on: [ubuntu-latest] + outputs: + new_tag: ${{ steps.tag_version.outputs.new_tag }} + steps: + - uses: actions/checkout@v4 + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag_prefix: "" + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + body: ${{ steps.tag_version.outputs.changelog }} diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 2594b55..e61496e 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,6 +12,7 @@ post_install: # Install dependencies with 'docs' dependency group # https://python-poetry.org/docs/managing-dependencies/#dependency-groups + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry lock --no-update - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install mkdocs: