Skip to content

Release

Release #9

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
checks:
name: Version check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.10.5
# Install poetry
- name: Load cached Poetry installation
uses: actions/cache@v2
with:
path: ~/.local
key: poetry-0
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Check version
run: |
echo "project_version=`poetry version --short`" >> $GITHUB_ENV;
echo "tag_name=${{ github.ref_name }}" >> $GITHUB_ENV;
[ "$project_version" == "$tag_name" ]