Skip to content

Commit b912aee

Browse files
committed
Update outdated versions in GitHub Actions configuration
1 parent affc39b commit b912aee

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

.github/workflows/test.yml

+25-16
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
python-impl: PyPy
4747
steps:
4848
- name: Checkout code
49-
uses: actions/checkout@v2
49+
uses: actions/checkout@v4
5050
- name: Setup Python ${{ matrix.python-version }}
51-
uses: actions/setup-python@v2
51+
uses: actions/setup-python@v5
5252
with:
5353
python-version: ${{ matrix.python-version }}
5454
- name: Update pip
@@ -74,21 +74,21 @@ jobs:
7474
- test
7575
steps:
7676
- name: Checkout code
77-
uses: actions/checkout@v2
77+
uses: actions/checkout@v4
7878
with:
7979
submodules: true
8080
- name: Setup Python 3.10
81-
uses: actions/setup-python@v2
81+
uses: actions/setup-python@v5
8282
with:
8383
python-version: "3.10"
8484
- name: Install build requirements
8585
run: python -m pip install -r .github/workflows/requirements.txt
8686
- name: Build wheel
8787
run: python -m build --wheel --outdir dist
8888
- name: Store built wheels
89-
uses: actions/upload-artifact@v2
89+
uses: actions/upload-artifact@v4
9090
with:
91-
name: dist
91+
name: wheel
9292
path: dist/*
9393

9494
sdist:
@@ -98,21 +98,21 @@ jobs:
9898
- test
9999
steps:
100100
- name: Checkout code
101-
uses: actions/checkout@v2
101+
uses: actions/checkout@v4
102102
with:
103103
submodules: true
104104
- name: Set up Python 3.10
105-
uses: actions/setup-python@v2
105+
uses: actions/setup-python@v5
106106
with:
107107
python-version: "3.10"
108108
- name: Install build requirements
109109
run: python -m pip install -r .github/workflows/requirements.txt
110110
- name: Build distribution
111111
run: python -m build --sdist --outdir dist
112112
- name: Store built wheels
113-
uses: actions/upload-artifact@v2
113+
uses: actions/upload-artifact@v4
114114
with:
115-
name: dist
115+
name: sdist
116116
path: dist/*
117117

118118
upload:
@@ -126,11 +126,18 @@ jobs:
126126
- sdist
127127
- wheel
128128
steps:
129-
- name: Download built distributions
130-
uses: actions/download-artifact@v2
129+
- name: Download source distribution
130+
uses: actions/download-artifact@v4
131131
with:
132-
name: dist
133-
path: dist
132+
name: sdist
133+
path: dist/
134+
merge-multiple: true
135+
- name: Download wheel distributions
136+
uses: actions/download-artifact@v4
137+
with:
138+
pattern: wheel
139+
path: dist/
140+
merge-multiple: true
134141
- name: Publish distributions to PyPI
135142
uses: pypa/gh-action-pypi-publish@release/v1
136143

@@ -140,10 +147,12 @@ jobs:
140147
if: "startsWith(github.ref, 'refs/tags/v')"
141148
name: Release
142149
needs: upload
150+
permissions:
151+
contents: write
143152
steps:
144153
- name: Checkout code
145-
uses: actions/checkout@v1
154+
uses: actions/checkout@v4
146155
- name: Release a Changelog
147-
uses: rasmus-saks/release-a-changelog-action@v1.0.1
156+
uses: rasmus-saks/release-a-changelog-action@v1.2.0
148157
with:
149158
github-token: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)