@@ -21,26 +21,26 @@ jobs:
2121 python-version : " 3.10"
2222
2323 steps :
24- - uses : actions/checkout@v2
24+ - uses : actions/checkout@v4
2525
2626 - name : Set up Python ${{ matrix.python-version }} on ${{ matrix.os }}
2727 uses : actions/setup-python@v5
2828 with :
2929 python-version : ${{ matrix.python-version }}
3030
31- - uses : actions/cache@v2
31+ - uses : actions/cache@v4
3232 if : startsWith(runner.os, 'Linux')
3333 with :
3434 path : ~/.cache/pip
3535 key : ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }}
3636
37- - uses : actions/cache@v2
37+ - uses : actions/cache@v4
3838 if : startsWith(runner.os, 'macOS')
3939 with :
4040 path : ~/Library/Caches/pip
4141 key : ${{ runner.os }}-pip-${{ hashFiles('**/*requirements.txt') }}
4242
43- - uses : actions/cache@v2
43+ - uses : actions/cache@v4
4444 if : startsWith(runner.os, 'Windows')
4545 with :
4646 path : ~\AppData\Local\pip\Cache
7474 python setup.py sdist bdist_wheel
7575
7676 - name : Upload artifact
77- uses : actions/upload-artifact@v2
77+ uses : actions/upload-artifact@v4
7878 with :
79- name : ${{ runner.os }}-py${{ matrix.python-version }}-artifact
79+ name : artifact- ${{ runner.os }}-py${{ matrix.python-version }}
8080 path : dist/*
8181 retention-days : 7
8282
@@ -85,26 +85,19 @@ jobs:
8585 needs : [build]
8686 runs-on : ubuntu-latest
8787 steps :
88- - uses : actions/checkout@v2
88+ - uses : actions/checkout@v4
8989
90- - uses : actions/download-artifact@v2
90+ - uses : actions/download-artifact@v4
9191 with :
92- path : artifacts/
92+ path : dist/
93+ pattern : artifact-*
94+ merge-multiple : true
9395
9496 - name : Create release description
9597 run : |
9698 python release-description.py CHANGELOG.rst > description.md
9799 cat description.md
98100
99- - name : Move artifacts
100- run : |
101- ls --recursive artifacts/
102- mkdir dist
103- mv --backup=numbered artifacts/*/** dist
104- rm -f dist/*~
105- echo "To be uploaded:"
106- ls dist
107-
108101 - name : Create release
109102 if : startsWith(github.ref, 'refs/tags/v')
110103 uses : softprops/action-gh-release@v1
0 commit comments