This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new ca5623895 ci: upgrade upload and download artifact actions (#5598)
ca5623895 is described below
commit ca56238951d26985aa719fde1d8a52eee0b177e0
Author: tison <[email protected]>
AuthorDate: Sun Feb 2 23:34:49 2025 +0800
ci: upgrade upload and download artifact actions (#5598)
Signed-off-by: tison <[email protected]>
---
.github/workflows/ci_bindings_haskell.yml | 4 ++--
.github/workflows/release_python.yml | 18 +++++++++---------
website/community/release/release.md | 2 +-
3 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/ci_bindings_haskell.yml
b/.github/workflows/ci_bindings_haskell.yml
index 242e80b05..731118ee5 100644
--- a/.github/workflows/ci_bindings_haskell.yml
+++ b/.github/workflows/ci_bindings_haskell.yml
@@ -101,7 +101,7 @@ jobs:
tar xf opendal-*.crate --strip-components=1
cabal sdist
- name: Upload artifact
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: bindings-haskell-sdist
path: bindings/haskell/target/package/dist-newstyle/sdist/*.tar.gz
@@ -114,7 +114,7 @@ jobs:
# if: "startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-')"
# needs: [package]
# steps:
-# - uses: actions/download-artifact@v3
+# - uses: actions/download-artifact@v4
# with:
# name: bindings-haskell-sdist
# - name: Load secret
diff --git a/.github/workflows/release_python.yml
b/.github/workflows/release_python.yml
index 33945298d..ec4aa62da 100644
--- a/.github/workflows/release_python.yml
+++ b/.github/workflows/release_python.yml
@@ -46,9 +46,9 @@ jobs:
command: sdist
args: -o dist
- name: Upload sdist
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
- name: wheels
+ name: wheels-sdist
path: bindings/python/dist
wheels:
@@ -94,34 +94,34 @@ jobs:
sccache: true
manylinux: ${{ matrix.manylinux || 'auto' }}
- name: Upload wheels
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
- name: wheels
+ name: wheels-${{ matrix.os }}-${{ matrix.target }}
path: bindings/python/dist
release:
name: Release
runs-on: ubuntu-latest
- if: "startsWith(github.ref, 'refs/tags/')"
permissions:
contents: read
id-token: write
needs: [sdist, wheels]
steps:
- - uses: actions/download-artifact@v3
+ - uses: actions/download-artifact@v4
with:
- name: wheels
+ pattern: wheels-*
+ merge-multiple: true
path: bindings/python/dist
- name: Publish to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
- if: "contains(github.ref, '-')"
+ if: ${{ startsWith(github.ref, 'refs/tags/') && contains(github.ref,
'-') }}
with:
repository-url: https://test.pypi.org/legacy/
skip-existing: true
packages-dir: bindings/python/dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- if: "!contains(github.ref, '-')"
+ if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref,
'-') }}
with:
skip-existing: true
packages-dir: bindings/python/dist
diff --git a/website/community/release/release.md
b/website/community/release/release.md
index 3bf213add..554f970fc 100644
--- a/website/community/release/release.md
+++ b/website/community/release/release.md
@@ -138,7 +138,7 @@ Additionally, we should also drop the staging Maven
artifacts on https://reposit
After GitHub Release has been created, we can start to create ASF Release.
- Checkout to released tag. (e.g. `git checkout v0.46.0-rc.1`, tag is created
in the previous step)
-- Use the release script to create a new release: `python ./scripts/release.py`
+- Use the release script to create a new release: `just release`
- This script will generate the release candidate artifacts under `dist`,
including:
- `apache-opendal-{package}-{version}-src.tar.gz`
- `apache-opendal-{package}-{version}-src.tar.gz.asc`