gitinspector/.github/workflows/release.yml
2021-04-04 21:29:32 -04:00

36 lines
No EOL
827 B
YAML

name: Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel twine
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test
run: make dist
- name: Release
id: release
uses: softprops/action-gh-release@v1
with:
files: dist/*
fail_on_unmatched_files: true
prerelease: ${{ endsWith(github.ref, 'dev') || endsWith(github.ref, 'pre') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}