File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 47
47
pip install --force-reinstall Sphinx sphinx-rtd-theme pre-commit
48
48
- name : Library version
49
49
run : git describe --dirty --always --tags
50
+ - name : Setup problem matchers
51
+ uses : adafruit/circuitpython-action-library-ci-problem-matchers@v1
50
52
- name : Pre-commit hooks
51
53
run : |
52
54
pre-commit run --all-files
68
70
if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
69
71
run : |
70
72
pip install --upgrade build twine
73
+ for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
74
+ sed -i -e "s/0.0.0-auto.0/1.2.3/" $file;
75
+ done;
71
76
python -m build
72
77
twine check dist/*
73
- - name : Setup problem matchers
74
- uses : adafruit/circuitpython-action-library-ci-problem-matchers@v1
Original file line number Diff line number Diff line change 81
81
TWINE_USERNAME : ${{ secrets.pypi_username }}
82
82
TWINE_PASSWORD : ${{ secrets.pypi_password }}
83
83
run : |
84
+ for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
85
+ sed -i -e "s/0.0.0-auto.0/${{github.event.release.tag_name}}/" $file;
86
+ done;
84
87
python -m build
85
88
twine upload dist/*
You can’t perform that action at this time.
0 commit comments