Skip to content

Commit

Permalink
Check release (#114)
Browse files Browse the repository at this point in the history
* Add release version check

* Fix

* Fix 2

* Fix 3

* Fix 4

* Fix 5

* Fix 6

* Fix 7

* Fix 8

* Fix 9

* Fix 10

* Test correct version

* Revert "Test correct version"

This reverts commit ea8f1bf.

* Swap labels
  • Loading branch information
evgeny-stakewise authored Aug 21, 2024
1 parent 80c6bd7 commit ce1aa9f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
release:
types: [published]

jobs:
checks:
name: Check version
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 project version matches tag name
run: |
[ "`poetry version --short`" == "${{ github.ref_name }}" ]
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "sw-utils"
version = "0.6.20"
version = "v0.6.20"
description = "StakeWise Python utils"
authors = ["StakeWise Labs <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down

0 comments on commit ce1aa9f

Please sign in to comment.