-
Notifications
You must be signed in to change notification settings - Fork 93
Error: No artifacts named "github-pages" were found for this workflow run. #305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
👋 You are using our latest |
I have the very same issue. v3 still works, v4 throws this error. |
Adding config before deploy worked for me deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Configure Pages
uses: actions/configure-pages@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 |
Hmm, not sure if this is the solution, because that's what we had more or less (Just additionally |
actions/deploy-pages#305 suggests that this is necessary.
Check out these examples: |
name: Deploy static content to Pages
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up pnpm
uses: pnpm/[email protected]
with:
version: 8.6.2
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build project
run: pnpm run build
- name: List build directory
run: ls -R ${{ github.workspace }}/sample/dist
- name: Set debug output
run: echo "UPLOAD_PATH=${{ github.workspace }}/sample/dist" >> $GITHUB_ENV
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{ github.workspace }}/dist
artifact_name: dist
continue-on-error: true
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 |
Uh oh!
There was an error while loading. Please reload this page.
From
actions/update-pages-artifact
stepFrom "Artifacts" section in summary
From
actions/deploy-pages
Workflow
❓ ❓ ❓
The text was updated successfully, but these errors were encountered: