Skip to content

Commit

Permalink
Added new GITHUB workflow to generate version file
Browse files Browse the repository at this point in the history
  • Loading branch information
tcevaer committed Oct 30, 2023
1 parent 29efe74 commit b16cfb5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/gen_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Generate version file

on:
push:
tags:
- '*'

jobs:
generate_version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install setuptools_scm
run: pip install setuptools_scm

- name: Write version to file
run: python -c "import setuptools_scm; print(f'__version__ = \\'{setuptools_scm.get_version()}\\'', file=open('coloc_sat/version.py', 'w'))"

0 comments on commit b16cfb5

Please sign in to comment.