diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 62d5792d6..c0c236824 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -3,12 +3,12 @@ name: documentation on: workflow_call: workflow_dispatch: - push: - branches: - - ocp_documentation - paths: - - 'docs/*' - - '.github/workflows/deploy_jupyter_book.yml' +# push: +# branches: +# - ocp_documentation +# paths: +# - 'docs/*' +# - '.github/workflows/deploy_jupyter_book.yml' # This job installs dependencies, build the book, and pushes it to `gh-pages` jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b637656fc..aed6f6e64 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,7 @@ name: release on: + push: release: types: [published] inputs: @@ -32,28 +33,28 @@ jobs: uses: ./.github/workflows/docs.yml secrets: inherit - release-pypi: - needs: [build] - runs-on: ubuntu-latest - if: github.event.inputs.release-pypi == 'true' && startsWith(github.ref, 'refs/tags/') - environment: - name: pypi - url: https://pypi.org/p/ocp-models - - permissions: - id-token: write # IMPORTANT: mandatory for trusted publishing - - steps: - - uses: actions/download-artifact@v4 - with: - name: artifact - path: dist - - - uses: pypa/gh-action-pypi-publish@release/v1 - with: - verbose: true - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} +# release-pypi: +# needs: [build] +# runs-on: ubuntu-latest +# if: github.event.inputs.release-pypi == 'true' && startsWith(github.ref, 'refs/tags/') +# environment: +# name: pypi +# url: https://pypi.org/p/ocp-models +# +# permissions: +# id-token: write # IMPORTANT: mandatory for trusted publishing +# +# steps: +# - uses: actions/download-artifact@v4 +# with: +# name: artifact +# path: dist +# +# - uses: pypa/gh-action-pypi-publish@release/v1 +# with: +# verbose: true +# user: __token__ +# password: ${{ secrets.PYPI_API_TOKEN }} release-test-pypi: needs: [build]