diff --git a/.github/workflows/gen_version.yml b/.github/workflows/gen_version.yml deleted file mode 100644 index f80cbf4..0000000 --- a/.github/workflows/gen_version.yml +++ /dev/null @@ -1,22 +0,0 @@ -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'))" - diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b118220..10a756d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,6 +17,10 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.10' + - 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'))" - name: Install system packages run: sudo apt-get install -y libgdal-dev - name: Setup Environment Variables