Skip to content

Commit 83f23e4

Browse files
authored
Merge pull request #31 from rhettre/rhettre-patch-1
Update python-publish.yml
2 parents 592055f + fb8964d commit 83f23e4

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/python-publish.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,36 @@ permissions:
1717

1818
jobs:
1919
deploy:
20-
2120
runs-on: ubuntu-latest
2221

2322
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
2427
- name: List directory contents
2528
run: ls -la
29+
2630
- name: Print working directory
2731
run: pwd
28-
- uses: actions/checkout@v4
32+
2933
- name: Set up Python
30-
uses: actions/setup-python@v3
34+
uses: actions/setup-python@v4
3135
with:
3236
python-version: '3.x'
37+
3338
- name: Install dependencies
3439
run: |
3540
python -m pip install --upgrade pip
3641
pip install build
42+
43+
- name: Install project dependencies
44+
run: |
45+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
46+
3747
- name: Build package
3848
run: python -m build
49+
3950
- name: Publish package
4051
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
4152
with:

0 commit comments

Comments
 (0)