|
1 |
| -name: release |
| 1 | +name: Release |
2 | 2 |
|
3 | 3 | on: workflow_dispatch
|
4 | 4 |
|
@@ -37,23 +37,24 @@ jobs:
|
37 | 37 | echo "Next release: ${NEXT_RELEASE}"
|
38 | 38 | git config --local user.email "[email protected]"
|
39 | 39 | git config --local user.name "github-actions"
|
40 |
| - python${{ matrix.python-version }} -m pip install --upgrade pip |
41 |
| - python${{ matrix.python-version }} -m pip install --user --upgrade pip build setuptools setuptools_scm wheel |
42 |
| - SETUPTOOLS_SCM_PRETEND_VERSION=${NEXT_RELEASE} python${{ matrix.python-version }} -m setuptools_scm |
| 40 | + python -m pip install --upgrade pip |
| 41 | + python -m pip install --user --upgrade pip build setuptools setuptools_scm wheel |
| 42 | + SETUPTOOLS_SCM_PRETEND_VERSION=${NEXT_RELEASE} python -m setuptools_scm |
43 | 43 | git add crystal_toolkit/_version.py
|
44 | 44 | git commit -m "version bump: ${NEXT_RELEASE}"
|
45 | 45 | git push
|
46 | 46 | git tag ${NEXT_RELEASE}
|
47 | 47 | git push --tags
|
| 48 | + echo "NEXT_RELEASE=${NEXT_RELEASE}" >> $GITHUB_ENV |
48 | 49 |
|
49 | 50 | - name: Install dependencies
|
50 | 51 | run: |
|
51 |
| - python${{ matrix.python-version }} -m pip install --user `grep numpy== requirements/ubuntu-latest_py${{ matrix.python-version }}_extras.txt` |
52 |
| - python${{ matrix.python-version }} -m pip install --user -r requirements/ubuntu-latest_py${{ matrix.python-version }}_extras.txt |
53 |
| - python${{ matrix.python-version }} -m pip install --user --no-deps .[server] |
| 52 | + python -m pip install --user `grep numpy== requirements/ubuntu-latest_py${{ matrix.python-version }}_extras.txt` |
| 53 | + python -m pip install --user -r requirements/ubuntu-latest_py${{ matrix.python-version }}_extras.txt |
| 54 | + python -m pip install --user --no-deps .[server] |
54 | 55 |
|
55 | 56 | - name: Build package
|
56 |
| - run: python${{ matrix.python-version }} -m build |
| 57 | + run: SETUPTOOLS_SCM_PRETEND_VERSION=${{env.NEXT_RELEASE}} python -m build |
57 | 58 |
|
58 | 59 | - name: Publish package
|
59 | 60 | uses: pypa/gh-action-pypi-publish@release/v1.5
|
|
0 commit comments