-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3383 from bdarnell/ci-update
ci: Update action versions for node deprecation
- Loading branch information
Showing
2 changed files
with
32 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,8 @@ jobs: | |
name: Build sdist | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: ${{ env.python-version }} | ||
|
@@ -36,8 +36,9 @@ jobs: | |
- name: Build sdist | ||
run: "python setup.py sdist && ls -l dist" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts-sdist | ||
path: ./dist/tornado-*.tar.gz | ||
|
||
build_wheels: | ||
|
@@ -49,54 +50,58 @@ jobs: | |
os: [ubuntu-22.04, windows-2022, macos-12] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: ${{ env.python-version }} | ||
- name: Set up QEMU | ||
if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
|
||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.12.1 | ||
uses: pypa/cibuildwheel@v2.18 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: artifacts-${{ matrix.os }} | ||
path: ./wheelhouse/*.whl | ||
|
||
upload_pypi_test: | ||
name: Upload to PyPI (test) | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-22.04 | ||
if: github.repository == 'tornadoweb/tornado' && github.event_name == 'workflow_dispatch' | ||
permissions: | ||
# This permission is required for pypi's "trusted publisher" feature | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
pattern: artifacts-* | ||
path: dist | ||
merge-multiple: true | ||
|
||
- uses: pypa/gh-action-pypi-publish@v1.5.0 | ||
- uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
repository-url: https://test.pypi.org/legacy/ | ||
skip-existing: true | ||
|
||
upload_pypi: | ||
name: Upload to PyPI (prod) | ||
needs: [build_wheels, build_sdist] | ||
runs-on: ubuntu-22.04 | ||
if: github.repository == 'tornadoweb/tornado' && github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v') | ||
permissions: | ||
# This permission is required for pypi's "trusted publisher" feature | ||
id-token: write | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: artifact | ||
pattern: artifacts-* | ||
path: dist | ||
merge-multiple: true | ||
|
||
- uses: pypa/[email protected] | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
- uses: pypa/gh-action-pypi-publish@release/v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters