Skip to content

Commit

Permalink
Do git hard reset before building
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jul 10, 2024
1 parent 89916e9 commit dc88bb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ jobs:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Fetch tags
run: git fetch --tags --prune
with:
fetch-tags: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
git reset --hard HEAD
pip install build
- name: Build package
run: python -m build
- name: git status
run: git status
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ dev = [
[project.entry-points."pynxtools.reader"]
mpes = "pynxtools_mpes.reader:MPESReader"

[tool.setuptools]
packages = ["pynxtools_mpes"]

[tool.setuptools_scm]

[tool.ruff]
Expand Down

0 comments on commit dc88bb0

Please sign in to comment.