Skip to content

Commit

Permalink
fixes for publishing action
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancrneto committed Dec 26, 2023
1 parent 3318a61 commit 4a03cd2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 44 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install poetry
poetry install
- name: Build package
run: |
python -c "import scm_version; scm_version.write_toml(reset=False)"
poetry run python -c "import scm_version; scm_version.write_toml(reset=False)"
poetry build
python -c "import scm_version; scm_version.write_toml(reset=True)"
poetry run python -c "import scm_version; scm_version.write_toml(reset=True)"
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
Expand Down
65 changes: 24 additions & 41 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a03cd2

Please sign in to comment.