From 6f33736b6f252506df8e574deced5d5667d05bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Mon, 30 Oct 2023 11:59:24 +0200 Subject: [PATCH] Updated actions and added GitHub release automation --- .github/workflows/publish.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 17be3ff0..6eee662b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest environment: release steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 with: @@ -39,3 +39,20 @@ jobs: uses: actions/download-artifact@v3 - name: Upload packages uses: pypa/gh-action-pypi-publish@release/v1 + + release: + name: Create a GitHub release + needs: build + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - id: changelog + uses: agronholm/release-notes@v1 + with: + path: docs/news.rst + pattern: "^\\*\\*([0-9a-z.]+) " + - uses: ncipollo/release-action@v1 + with: + body: ${{ steps.changelog.outputs.changelog }}