From da061049164efab95ee4360a9c971c5be248fbf2 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Wed, 22 Dec 2021 21:53:56 +0100 Subject: [PATCH] Updated workflows. - Added `create-release.yml` workflow. - Renamed `pythonpackage.yml` to `test-package.yml`. --- .github/workflows/create-release.yml | 29 +++++++++++++++++++ .../{pythonpackage.yml => test-package.yml} | 2 +- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/create-release.yml rename .github/workflows/{pythonpackage.yml => test-package.yml} (96%) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..fc4df59 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,29 @@ +name: Create release + +on: + push: + tags: + - '*.*.*' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Extract release notes + id: extract-release-notes + uses: ffurrer2/extract-release-notes@v1 + + - name: Create release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + draft: false + prerelease: false + body: ${{ steps.extract-release-notes.outputs.release_notes }} diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/test-package.yml similarity index 96% rename from .github/workflows/pythonpackage.yml rename to .github/workflows/test-package.yml index 449d6d8..3bb7b6e 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/test-package.yml @@ -1,4 +1,4 @@ -name: Python package +name: Test package on: - push