Updated workflows.

- Added `create-release.yml` workflow.
- Renamed `pythonpackage.yml` to `test-package.yml`.
This commit is contained in:
Fabio Caccamo 2021-12-22 21:53:56 +01:00
parent e90e64841a
commit da06104916
2 changed files with 30 additions and 1 deletions

29
.github/workflows/create-release.yml vendored Normal file
View File

@ -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 }}

View File

@ -1,4 +1,4 @@
name: Python package
name: Test package
on:
- push