diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a90b31f..110305a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,9 +46,9 @@ jobs: python-impl: PyPy steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Update pip @@ -74,11 +74,11 @@ jobs: - test steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Setup Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install build requirements @@ -86,9 +86,9 @@ jobs: - name: Build wheel run: python -m build --wheel --outdir dist - name: Store built wheels - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: dist + name: wheel path: dist/* sdist: @@ -98,11 +98,11 @@ jobs: - test steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: true - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install build requirements @@ -110,9 +110,9 @@ jobs: - name: Build distribution run: python -m build --sdist --outdir dist - name: Store built wheels - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: - name: dist + name: sdist path: dist/* upload: @@ -126,11 +126,18 @@ jobs: - sdist - wheel steps: - - name: Download built distributions - uses: actions/download-artifact@v2 + - name: Download source distribution + uses: actions/download-artifact@v4 with: - name: dist - path: dist + name: sdist + path: dist/ + merge-multiple: true + - name: Download wheel distributions + uses: actions/download-artifact@v4 + with: + pattern: wheel + path: dist/ + merge-multiple: true - name: Publish distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 @@ -140,10 +147,12 @@ jobs: if: "startsWith(github.ref, 'refs/tags/v')" name: Release needs: upload + permissions: + contents: write steps: - name: Checkout code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Release a Changelog - uses: rasmus-saks/release-a-changelog-action@v1.0.1 + uses: rasmus-saks/release-a-changelog-action@v1.2.0 with: github-token: '${{ secrets.GITHUB_TOKEN }}'