Skip to content

.github/workflows/publish-mn-manager.yml #40

.github/workflows/publish-mn-manager.yml

.github/workflows/publish-mn-manager.yml #40

# This workflow deploy system tools to development environment
name: Master node manager QA and deploy to Pypi
on:
push:
branches: [ "mn_manager" ]
pull_request_review:
types: [submitted]
review:
pull_request:
base:
ref: [ "mn_manager" ]
jobs:
build-package-on-push:
if: ${{ github.event_name == 'push'}}
name: Build package ${{ github.ref_name }}
uses: WattRex/System-Tools/.github/workflows/build_python_package.yml@develop

Check failure on line 21 in .github/workflows/publish-mn-manager.yml

View workflow run for this annotation

GitHub Actions / Master node manager QA and deploy to Pypi

Invalid workflow file

The workflow is not valid. .github/workflows/publish-mn-manager.yml (Line: 21, Col: 11): Input source-path is required, but not provided while calling. .github/workflows/publish-mn-manager.yml (Line: 25, Col: 26): Invalid input, requirements-path is not defined in the referenced workflow.
with:
package-name: ${{ github.ref_name }}
package-path: ${{ github.ref_name }}
requirements-path: ${{ github.ref_name }}
build-package-on-pull-request:
if: ${{ github.event_name == 'pull_request_review' && github.event.review.state == 'approved' }}
name: Build package ${{ github.event.pull_request.head.ref }}
uses: WattRex/System-Tools/.github/workflows/build_python_package.yml@develop
with:
package-name: ${{ github.event.pull_request.head.ref }}
package-path: ${{ github.event.pull_request.head.ref }}
requirements-path: ${{ github.event.pull_request.head.ref }}
publish-package:
name: Publish package ${{ github.event.pull_request.head.ref }} to PyPi
if: ${{ github.event_name == 'pull_request_review' }} && ${{ github.event.review.state == 'approved' }}
needs: build-package-on-pull-request
runs-on: ubuntu-latest
environment: development
permissions:
id-token: write
steps:
- name: Download a single artifact
uses: actions/download-artifact@v3
with:
name: ${{ github.event.pull_request.head.ref }}
path: ${{ github.event.pull_request.head.ref }}/dist/
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@f8c70e705ffc13c3b4d1221169b84f12a75d6ca8
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: ${{ github.event.pull_request.head.ref }}/dist/