Skip to content

Commit

Permalink
Updated workflows.
Browse files Browse the repository at this point in the history
- Added `create-release.yml` workflow.
- Renamed `pythonpackage.yml` to `test-package.yml`.
  • Loading branch information
fabiocaccamo committed Dec 22, 2021
1 parent 042e93a commit c9f0795
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package
name: Test package

on:
- push
Expand Down Expand Up @@ -32,7 +32,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install psycopg2 prerequisites
run: sudo apt-get install libpq-dev

Expand Down

0 comments on commit c9f0795

Please sign in to comment.