Skip to content

Commit

Permalink
馃И馃拝 Add a reusable project name var to CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Dec 15, 2023
1 parent 729e31e commit d9f5e0c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ env:
PIP_NO_PYTHON_VERSION_WARNING: 1
PIP_NO_WARN_SCRIPT_LOCATION: 1
PRE_COMMIT_COLOR: always
PROJECT_NAME: frozenlist
PY_COLORS: 1 # Recognized by the `py` package, dependency of `pytest`
PYTHONIOENCODING: utf-8
PYTHONUTF8: 1
Expand All @@ -53,8 +54,8 @@ jobs:
# NOTE: These aren't env vars because the `${{ env }}` context is
# NOTE: inaccessible when passing inputs to reusable workflows.
dists-artifact-name: python-package-distributions
sdist-name: frozenlist-*.tar.gz
wheel-name: frozenlist-*.whl
sdist-name: ${{ env.PROJECT_NAME }}-*.tar.gz
wheel-name: ${{ env.PROJECT_NAME }}-*.whl
steps:
- run: >-
print('No-op')
Expand Down Expand Up @@ -248,7 +249,7 @@ jobs:
-m pip install
--find-links=./dist
--no-index
frozenlist
'${{ env.PROJECT_NAME }}'
--force-reinstall
--no-color
--no-deps
Expand Down Expand Up @@ -392,7 +393,7 @@ jobs:

environment:
name: pypi
url: https://pypi.org/p/frozenlist
url: https://pypi.org/p/${{ env.PROJECT_NAME }}

steps:
- name: Retrieve the project source from an sdist inside the GHA artifact
Expand All @@ -417,8 +418,7 @@ jobs:
uses: aio-libs/create-release@v1.6.6
with:
changes_file: CHANGES.rst
name: frozenlist
version_file: frozenlist/__init__.py
version_file: ${{ env.PROJECT_NAME }}/__init__.py
github_token: ${{ secrets.GITHUB_TOKEN }}
fix_issue_regex: >-
:issue:`(\d+)`
Expand Down

0 comments on commit d9f5e0c

Please sign in to comment.