chore: pin matplotlib to prevent compatibility issue with matplotlabs… #137
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: Release | ||
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| release: | ||
| name: Create Release | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| permissions: | ||
| contents: write | ||
| outputs: | ||
| should-publish: ${{ steps.tag_check.outputs.exists == 'false' }} | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Read project version | ||
| id: project_version | ||
| uses: maybe-hello-world/pyproject-check-version@v4 | ||
| with: | ||
| pyproject-path: pyproject.toml | ||
| - name: Check if tag already exists | ||
| id: tag_check | ||
| env: | ||
| TAG: ${{ steps.project_version.outputs.local_version }} | ||
| run: | | ||
| if git rev-parse "refs/tags/${TAG}" >/dev/null 2>&1; then | ||
| echo "Tag ${TAG} already exists — skipping release." | ||
| echo "exists=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "exists=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
| - name: Create GitHub Release | ||
| if: steps.tag_check.outputs.exists == 'false' | ||
| uses: softprops/action-gh-release@v3 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| with: | ||
| tag_name: ${{ steps.project_version.outputs.local_version }} | ||
| name: Release ${{ steps.project_version.outputs.local_version }} | ||
| draft: false | ||
| prerelease: false | ||
| publish: | ||
|
Check failure on line 54 in .github/workflows/release.yml
|
||
| name: Publish client | ||
| needs: release | ||
| if: needs.release.outputs.should-publish == 'true' | ||
| uses: ./.github/workflows/publish-pypi.yml | ||
| with: | ||
| package-dir: packages/optimuskg | ||