build(deps): bump actions/checkout from 6.0.2 to 7.0.0 in the github-actions group across 1 directory #124
This file contains hidden or 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
| name: Make release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| paths: | |
| - .github/workflows/make_release.yml | |
| jobs: | |
| build_wheels: # This job builds the wheels | |
| runs-on: ubuntu-latest | |
| permissions: | |
| attestations: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - uses: hynek/build-and-inspect-python-package@v2 | |
| with: | |
| attest-build-provenance-github: 'true' | |
| build_pyinstaller_bundle: | |
| name: Build PyInstaller bundle | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu-22.04", "windows-2022", "macos-15-intel", "macos-15"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7.0.0 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Setup headless display | |
| uses: pyvista/setup-headless-display-action@5bc8de3bc71fcda7a96439571287a554901541a0 # v4.3 | |
| with: | |
| qt: true | |
| wm: herbstluftwm | |
| - name: Install PartSeg | |
| run: python -m pip install --editable ".[pyinstaller]" --constraint requirements/constraints_py3.12.txt | |
| - name: Build PartSeg bundle | |
| run: python build_utils/create_and_pack_executable.py | |
| - name: Publish PartSeg bundle | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: PartSeg_bundle_${{ matrix.os }} | |
| path: dist2 | |
| - name: Test PartSeg bundle | |
| run: dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test || dist/PartSeg/PartSeg _test | |
| create_release: | |
| name: Create release | |
| permissions: | |
| id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
| contents: write # IMPORTANT: this permission is mandatory for create release | |
| needs: | |
| - build_wheels | |
| - build_pyinstaller_bundle | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.0 | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| pattern: 'PartSeg_bundle_*' | |
| path: pyinstaller | |
| merge-multiple: true | |
| - uses: actions/download-artifact@v8 | |
| with: | |
| name: Packages | |
| path: dist | |
| - name: generate release notes | |
| id: release_notes | |
| run: | | |
| python build_utils/cut_changelog.py | |
| echo ------------------ | |
| { | |
| echo 'contents<<EOF' | |
| python build_utils/cut_changelog.py | |
| echo EOF | |
| } >> "$GITHUB_OUTPUT" | |
| - name: check if prerelease | |
| id: prerelease | |
| run: | | |
| TAG="${GITHUB_REF/refs\/tags\/v/}" # clean tag | |
| echo "tag=${TAG}" >> "$GITHUB_ENV" | |
| shell: bash | |
| - name: Create Release | |
| uses: "softprops/action-gh-release@v3" | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| tag_name: ${{ github.ref }} | |
| name: ${{ env.tag }} | |
| body: ${{ steps.release_notes.outputs.contents }} | |
| draft: false | |
| prerelease: ${{ contains(env.tag, 'rc') || contains(env.tag, 'a') || contains(env.tag, 'b')}} | |
| files: | | |
| dist/* | |
| pyinstaller/* | |
| - name: Publish package distributions to PyPI | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
| uses: pypa/gh-action-pypi-publish@release/v1 |