Skip to content

Commit ca56238

Browse files
authored
ci: upgrade upload and download artifact actions (#5598)
Signed-off-by: tison <[email protected]>
1 parent 63734e6 commit ca56238

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/ci_bindings_haskell.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
tar xf opendal-*.crate --strip-components=1
102102
cabal sdist
103103
- name: Upload artifact
104-
uses: actions/upload-artifact@v3
104+
uses: actions/upload-artifact@v4
105105
with:
106106
name: bindings-haskell-sdist
107107
path: bindings/haskell/target/package/dist-newstyle/sdist/*.tar.gz
@@ -114,7 +114,7 @@ jobs:
114114
# if: "startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')"
115115
# needs: [package]
116116
# steps:
117-
# - uses: actions/download-artifact@v3
117+
# - uses: actions/download-artifact@v4
118118
# with:
119119
# name: bindings-haskell-sdist
120120
# - name: Load secret

.github/workflows/release_python.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
command: sdist
4747
args: -o dist
4848
- name: Upload sdist
49-
uses: actions/upload-artifact@v3
49+
uses: actions/upload-artifact@v4
5050
with:
51-
name: wheels
51+
name: wheels-sdist
5252
path: bindings/python/dist
5353

5454
wheels:
@@ -94,34 +94,34 @@ jobs:
9494
sccache: true
9595
manylinux: ${{ matrix.manylinux || 'auto' }}
9696
- name: Upload wheels
97-
uses: actions/upload-artifact@v3
97+
uses: actions/upload-artifact@v4
9898
with:
99-
name: wheels
99+
name: wheels-${{ matrix.os }}-${{ matrix.target }}
100100
path: bindings/python/dist
101101

102102
release:
103103
name: Release
104104
runs-on: ubuntu-latest
105-
if: "startsWith(github.ref, 'refs/tags/')"
106105
permissions:
107106
contents: read
108107
id-token: write
109108
needs: [sdist, wheels]
110109
steps:
111-
- uses: actions/download-artifact@v3
110+
- uses: actions/download-artifact@v4
112111
with:
113-
name: wheels
112+
pattern: wheels-*
113+
merge-multiple: true
114114
path: bindings/python/dist
115115
- name: Publish to TestPyPI
116116
uses: pypa/gh-action-pypi-publish@release/v1
117-
if: "contains(github.ref, '-')"
117+
if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref, '-') }}
118118
with:
119119
repository-url: https://test.pypi.org/legacy/
120120
skip-existing: true
121121
packages-dir: bindings/python/dist
122122
- name: Publish to PyPI
123123
uses: pypa/gh-action-pypi-publish@release/v1
124-
if: "!contains(github.ref, '-')"
124+
if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}
125125
with:
126126
skip-existing: true
127127
packages-dir: bindings/python/dist

website/community/release/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Additionally, we should also drop the staging Maven artifacts on https://reposit
138138
After GitHub Release has been created, we can start to create ASF Release.
139139

140140
- Checkout to released tag. (e.g. `git checkout v0.46.0-rc.1`, tag is created in the previous step)
141-
- Use the release script to create a new release: `python ./scripts/release.py`
141+
- Use the release script to create a new release: `just release`
142142
- This script will generate the release candidate artifacts under `dist`, including:
143143
- `apache-opendal-{package}-{version}-src.tar.gz`
144144
- `apache-opendal-{package}-{version}-src.tar.gz.asc`

0 commit comments

Comments
 (0)