diff --git a/.github/workflows/ci_bindings_haskell.yml b/.github/workflows/ci_bindings_haskell.yml index 242e80b050a..731118ee5cb 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 33945298d3d..ec4aa62da69 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 3bf213add09..554f970fc95 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`