Skip to content

Commit 4561cd2

Browse files
committed
MAINT: Add dependabot and fix outdated action
1 parent 4d2e165 commit 4561cd2

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"
7+
groups:
8+
actions:
9+
patterns:
10+
- "*"

.github/workflows/wheels.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
fetch-depth: 0
4545
- name: Build sdist
4646
run: pipx run build -s
47-
- uses: actions/upload-artifact@v3
47+
- uses: actions/upload-artifact@v4
4848
with:
4949
name: sdist
5050
path: ./dist/*.tar.gz
@@ -96,7 +96,7 @@ jobs:
9696
env:
9797
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
9898

99-
- uses: actions/upload-artifact@v3
99+
- uses: actions/upload-artifact@v4
100100
with:
101101
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
102102
path: ./wheelhouse/*.whl
@@ -106,7 +106,7 @@ jobs:
106106
needs: [build-sdist]
107107
runs-on: ubuntu-latest
108108
steps:
109-
- uses: actions/download-artifact@v3
109+
- uses: actions/download-artifact@v4
110110
with:
111111
name: sdist
112112
path: ./dist
@@ -127,7 +127,7 @@ jobs:
127127
runs-on: ubuntu-latest
128128
needs: [test-sdist, build-wheel]
129129
steps:
130-
- uses: actions/download-artifact@v3
130+
- uses: actions/download-artifact@v4
131131
with:
132132
path: dist/
133133
- name: Check artifacts
@@ -143,16 +143,20 @@ jobs:
143143
runs-on: ubuntu-latest
144144
environment: "Package deployment"
145145
needs: [pre-publish]
146-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
147146
steps:
148-
- uses: actions/download-artifact@v3
147+
- uses: actions/download-artifact@v4
149148
with:
150149
path: dist/
150+
pattern: '*'
151+
merge-multiple: true
151152
- name: Consolidate artifacts
152153
run: |
154+
set -eo pipefail
153155
mv dist/*/*.{tar.gz,whl} dist
154156
rmdir dist/*/
157+
ls -lR dist/
155158
- uses: pypa/gh-action-pypi-publish@release/v1
156159
with:
157160
user: __token__
158161
password: ${{ secrets.PYPI_API_TOKEN }}
162+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)