actions / deploy-pages

GitHub Action to publish artifacts to GitHub Pages for deployments
https://pages.github.com
MIT License
593 stars 74 forks source link

Value 'github-pages' is not valid #344

Open ioquatix opened 1 month ago

ioquatix commented 1 month ago

Not sure why this happens, but looks like the schema validation in VSCode reports this error:

image

It's a little confusing as I believe this is actually correct.

yoannchaudet commented 1 month ago

Cannot see the whole workflow in the screenshot but GitHub Pages does not really own the VS code extension anyway.

Would you mind asking in https://github.com/orgs/community/discussions/categories/actions?discussions_q=is%3Aunanswered+category%3AActions?

ioquatix commented 1 month ago

It would be this one https://github.com/socketry/async/blob/main/.github/workflows/documentation.yaml which I use across multiple projects.

I suppose there must be a schema for this file, defined by VSCode, which doesn't take into account GitHub pages...

ioquatix commented 1 month ago

I found the schema and created an issue ☝🏼

NicoWeio commented 3 weeks ago

Just to stress: This means that the example code from this action's README yields a linting error. I just filed a crude PR upstream (https://github.com/actions/languageservices/pull/80).

NicoWeio commented 3 weeks ago

Whoa, looks like our efforts were totally misdirected.

Apparently, the GitHub Actions extension performs a lookup for existing environments in one's repo and complains about any non-existing ones, even though the workflow might run fine and just create one. See https://github.com/github/vscode-github-actions/issues/215.