Updated workflows.
- Added `create-release.yml` workflow. - Renamed `pythonpackage.yml` to `test-package.yml`.pull/147/head
parent
042e93a84b
commit
c9f0795a95
|
|
@ -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 }}
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
name: Python package
|
name: Test package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- push
|
- push
|
||||||
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
||||||
- name: Install psycopg2 prerequisites
|
- name: Install psycopg2 prerequisites
|
||||||
run: sudo apt-get install libpq-dev
|
run: sudo apt-get install libpq-dev
|
||||||
|
|
||||||
Loading…
Reference in New Issue