vscode-github-actions
vscode-github-actions copied to clipboard
Value 'github-pages' is not valid
Describe the bug
The GitHub Actions extension for VS Code shows me that "github-pages" is not a supported environment.
To Reproduce
Steps to reproduce the behavior:
- With this workflow: https://github.com/actions/deploy-pages?tab=readme-ov-file#usage
- Do this: Open your ".github/workflows/deploy.yml" file
- See error (the extensions shows:
Value 'github-pages' is not valid)
Expected behavior
Accept "github-pages" as value.
Screenshots
Extension Version
v0.26.3
Additional context
Here is my full workflow:
name: "Deploy Website"
on:
push:
branches: ["master"]
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: "Checkout Code"
uses: actions/checkout@v4
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: "20"
- name: "Build Website"
run: npm ci && npm run build
- name: "Upload artifact"
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
deploy:
environment:
name: "github-pages"
url: ${{ steps.deployment.outputs.page_url }}
needs: build
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
name: "Deploy"
steps:
- name: "Deploy to GitHub Pages"
id: deployment
uses: actions/deploy-pages@v4