Skip to content

Commit

Permalink
ci: upgrade upload and download artifact actions (#5598)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Feb 2, 2025
1 parent 63734e6 commit ca56238
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci_bindings_haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/release_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion website/community/release/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit ca56238

Please sign in to comment.