Replies: 3 comments 14 replies
-
Can you look at the content of the artifact? I'm surprised the workflow didn't fail in the checkout step already, because the |
Beta Was this translation helpful? Give feedback.
-
I usually use Your error message implies that GitHub Pages does not accept the format of your artifact, so this can still work by creating a valid artifact with name: Publish Pages
on:
workflow_run:
workflows: ['Build the project', 'Playwright Tests']
types: [completed]
branches: [master]
# push: # My workflow uses the push event, no idea if this works with workflow_run
permissions:
contents: read
pages: write
id-token: write
concurrency: # Cancel parallel deployments before starting a new one
group: "pages"
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 5 # This is enough time?
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Setup Node
id: setup_node_step
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Enable Cache
id: cache_step
uses: actions/cache@v3
with:
key: ${{ hashFiles('yarn.lock') }}
path: node_modules
- if: ${{ steps.cache_step.outputs.cache-hit != 'true' }}
run: yarn install --frozen-lockfile
- name: build
run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v1 # This action is the prefered way to create a GitHub Pages artifact not upload-artifact
with:
path: docs # Измените на директорию, где находятся собранные файлы
- name: Deploy Pages
id: deployment
uses: actions/deploy-pages@v2 Disclaimer: I have not tested the provided example, the following is my working workflow https://github.com/ChristopherHX/runner.server/blob/main/.github/workflows/deploy-pages.yml |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I've created the action but it does not work
Build command creates
docs
folderDefault publish page action successfully publishes the pages but mine - not
Error:
the error message by link in error
Beta Was this translation helpful? Give feedback.
All reactions