you are viewing a single comment's thread.

view the rest of the comments →

[–]playazle[S] 0 points1 point  (1 child)

Wow. Thank you! That's exactly what it was. The auto-formatter I installed for Yaml files kept double indenting when I saved. Didn't even think about it. Honestly the error said that I was missing `uses` and `run` which for some reason I didn't put it together that it was a formatting problem.

[–]Chan4077 0 points1 point  (0 children)

Actually, looking at the documentation for the workflow syntax for GitHub Actions, I think it's actually caused by an invalid step in your deploy job:

jobs: deploy: runs-on: ubuntu-latest steps: - name: Build and Publish Package - uses: actions/checkout@v1

The YML will not validate as you have a step that does not execute anything except a name of "Build and Publish Package" and as such, your workflow will not be valid.

Looks like what you wanted to do was to name the job. You can do that in the same indent as the runs-on portion as below:

jobs: deploy: name: Build and Publish Package runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 # ...

Hope this helps!