diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 0000000..47f24e1 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,30 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" diff --git a/.github/workflows/test-pypi-publish b/.github/workflows/test-pypi-publish.yml similarity index 77% rename from .github/workflows/test-pypi-publish rename to .github/workflows/test-pypi-publish.yml index 12e0156..fd79d6b 100644 --- a/.github/workflows/test-pypi-publish +++ b/.github/workflows/test-pypi-publish.yml @@ -1,20 +1,17 @@ -Publish to Test-Py-Pi -environment: - name: test-pypi +name: Publish to Test-Py-Pi on: - push: - paths-ignore: - - 'docs/**' - tags: - - 'test*' + workflow_dispatch: + release: + types: [created] jobs: build: - - runs-on: ubuntu-latest + + environment: + name: test-pypi + runs-on: ubuntu-latest strategy: - fail-fast: false matrix: python-version: [3.9] @@ -31,7 +28,6 @@ jobs: - name: Package run: | python setup.py sdist - python setup.py bdist_wheel - name: Publish 📦 to Test PyPI uses: pypa/gh-action-pypi-publish@master with: