Skip to content

Cannot run github action to publish python package #25460

Discussion options

You must be logged in to vote

Hi @ashwin-phadke,

As the error mentioned, every step must define a uses or run key. However below step doens’t follow the rule:

      - name: Change directory
        working-directory: ./cvplay

You can remove step. Instead of setting working directory for each step, you can set it in job level just once.

jobs:
  deploy:
    defaults:
      run:
        working-directory: ./cvplay   # job level working directory
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install setuptools wheel twine
        ......

Doc here: https://docs.github.com/en/actions/refer…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants