Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

GitHub Actions CD "Cannot find path because it does not exist"

I’m quite new to using Actions, and I’m having some trouble. My YML file looks like this:

name: Build
on:
  workflow_dispatch:
  push:
    branches: ["main", "master"]
jobs:
  build:
    runs-on: windows-latest
    steps:
      - name: Build with py2exe
        run: |
          pip install py2exe
          cd app
          python setup.py py2exe

I’m trying to compile app/main.py into a .exe file. I’m able to run these commands from my Windows 10 computer, but with Actions, it fails with:

Line |
   3 |  cd app
     |  ~~~~~~
     | Cannot find path 'D:\a\Pokemon-PythonRed\Pokemon-PythonRed\app' because it does not exist.

I’m sure there’s an app directory, you can check for yourself here.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

What am I doing wrong? Thank you in advance.

>Solution :

You need to check out the repo to access it in the workflow:

https://github.com/actions/checkout

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading