Upgrade upload/download artifact actions in release workflow (#10105)

This commit is contained in:
Micha Reiser 2024-02-26 08:23:10 +01:00 committed by GitHub
parent 761d4d42f1
commit bd98d6884b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,9 +52,9 @@ jobs:
ruff --help ruff --help
python -m ruff --help python -m ruff --help
- name: "Upload sdist" - name: "Upload sdist"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-sdist
path: dist path: dist
macos-x86_64: macos-x86_64:
@ -80,9 +80,9 @@ jobs:
ruff --help ruff --help
python -m ruff --help python -m ruff --help
- name: "Upload wheels" - name: "Upload wheels"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-macos-x86_64
path: dist path: dist
- name: "Archive binary" - name: "Archive binary"
run: | run: |
@ -90,9 +90,9 @@ jobs:
tar czvf $ARCHIVE_FILE -C target/x86_64-apple-darwin/release ruff tar czvf $ARCHIVE_FILE -C target/x86_64-apple-darwin/release ruff
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary" - name: "Upload binary"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: binaries name: binaries-macos-x86_64
path: | path: |
*.tar.gz *.tar.gz
*.sha256 *.sha256
@ -119,9 +119,9 @@ jobs:
ruff --help ruff --help
python -m ruff --help python -m ruff --help
- name: "Upload wheels" - name: "Upload wheels"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-aarch64-apple-darwin
path: dist path: dist
- name: "Archive binary" - name: "Archive binary"
run: | run: |
@ -129,9 +129,9 @@ jobs:
tar czvf $ARCHIVE_FILE -C target/aarch64-apple-darwin/release ruff tar czvf $ARCHIVE_FILE -C target/aarch64-apple-darwin/release ruff
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary" - name: "Upload binary"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: binaries name: binaries-aarch64-apple-darwin
path: | path: |
*.tar.gz *.tar.gz
*.sha256 *.sha256
@ -170,9 +170,9 @@ jobs:
ruff --help ruff --help
python -m ruff --help python -m ruff --help
- name: "Upload wheels" - name: "Upload wheels"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-${{ matrix.platform.target }}
path: dist path: dist
- name: "Archive binary" - name: "Archive binary"
shell: bash shell: bash
@ -181,9 +181,9 @@ jobs:
7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/ruff.exe 7z a $ARCHIVE_FILE ./target/${{ matrix.platform.target }}/release/ruff.exe
sha256sum $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 sha256sum $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary" - name: "Upload binary"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: binaries name: binaries-${{ matrix.platform.target }}
path: | path: |
*.zip *.zip
*.sha256 *.sha256
@ -218,9 +218,9 @@ jobs:
ruff --help ruff --help
python -m ruff --help python -m ruff --help
- name: "Upload wheels" - name: "Upload wheels"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-${{ matrix.target }}
path: dist path: dist
- name: "Archive binary" - name: "Archive binary"
run: | run: |
@ -228,9 +228,9 @@ jobs:
tar czvf $ARCHIVE_FILE -C target/${{ matrix.target }}/release ruff tar czvf $ARCHIVE_FILE -C target/${{ matrix.target }}/release ruff
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary" - name: "Upload binary"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: binaries name: binaries-${{ matrix.target }}
path: | path: |
*.tar.gz *.tar.gz
*.sha256 *.sha256
@ -289,9 +289,9 @@ jobs:
pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
ruff --help ruff --help
- name: "Upload wheels" - name: "Upload wheels"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-${{ matrix.platform.target }}
path: dist path: dist
- name: "Archive binary" - name: "Archive binary"
run: | run: |
@ -299,9 +299,9 @@ jobs:
tar czvf $ARCHIVE_FILE -C target/${{ matrix.platform.target }}/release ruff tar czvf $ARCHIVE_FILE -C target/${{ matrix.platform.target }}/release ruff
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary" - name: "Upload binary"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: binaries name: binaries-${{ matrix.platform.target }}
path: | path: |
*.tar.gz *.tar.gz
*.sha256 *.sha256
@ -341,9 +341,9 @@ jobs:
.venv/bin/pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall .venv/bin/pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
.venv/bin/ruff check --help .venv/bin/ruff check --help
- name: "Upload wheels" - name: "Upload wheels"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-${{ matrix.target }}
path: dist path: dist
- name: "Archive binary" - name: "Archive binary"
run: | run: |
@ -351,9 +351,9 @@ jobs:
tar czvf $ARCHIVE_FILE -C target/${{ matrix.target }}/release ruff tar czvf $ARCHIVE_FILE -C target/${{ matrix.target }}/release ruff
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary" - name: "Upload binary"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: binaries name: binaries-${{ matrix.target }}
path: | path: |
*.tar.gz *.tar.gz
*.sha256 *.sha256
@ -398,9 +398,9 @@ jobs:
.venv/bin/pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall .venv/bin/pip3 install ${{ env.PACKAGE_NAME }} --no-index --find-links dist/ --force-reinstall
.venv/bin/ruff check --help .venv/bin/ruff check --help
- name: "Upload wheels" - name: "Upload wheels"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: wheels name: wheels-${{ matrix.platform.target }}
path: dist path: dist
- name: "Archive binary" - name: "Archive binary"
run: | run: |
@ -408,9 +408,9 @@ jobs:
tar czvf $ARCHIVE_FILE -C target/${{ matrix.platform.target }}/release ruff tar czvf $ARCHIVE_FILE -C target/${{ matrix.platform.target }}/release ruff
shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256 shasum -a 256 $ARCHIVE_FILE > $ARCHIVE_FILE.sha256
- name: "Upload binary" - name: "Upload binary"
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: binaries name: binaries-${{ matrix.platform.target }}
path: | path: |
*.tar.gz *.tar.gz
*.sha256 *.sha256
@ -467,10 +467,11 @@ jobs:
# For pypi trusted publishing # For pypi trusted publishing
id-token: write id-token: write
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
name: wheels pattern: wheels-*
path: wheels path: wheels
merge-multiple: true
- name: Publish to PyPi - name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1 uses: pypa/gh-action-pypi-publish@release/v1
with: with:
@ -510,10 +511,11 @@ jobs:
# For GitHub release publishing # For GitHub release publishing
contents: write contents: write
steps: steps:
- uses: actions/download-artifact@v3 - uses: actions/download-artifact@v4
with: with:
name: binaries pattern: binaries-*
path: binaries path: binaries
merge-multiple: true
- name: "Publish to GitHub" - name: "Publish to GitHub"
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with: