chore(main): release 1.8.0 (#101) #77
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] | |
| permissions: {} | |
| jobs: | |
| release: | |
| name: Release | |
| uses: equinor/ops-actions/.github/workflows/release-please.yml@v9.38.4 | |
| with: | |
| release_type: python | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| build: | |
| name: Build | |
| needs: release | |
| if: needs.release.outputs.release_created == 'true' | |
| uses: equinor/ops-actions/.github/workflows/python-package.yml@v9.38.4 | |
| permissions: | |
| contents: read | |
| # Reusable workflows are not currently supported by PyPI Trusted Publishing. | |
| # Ref: https://docs.pypi.org/trusted-publishers/troubleshooting/#reusable-workflows-on-github | |
| pypi-publish: | |
| name: PyPI Publish | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: pypi | |
| permissions: | |
| id-token: write # Required for PyPI Trusted Publishing. | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c | |
| with: | |
| name: ${{ needs.build.outputs.artifact_name }} | |
| path: dist | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b |