Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Deploy docs to fluentmigrator/fluentmigrator.github.io repository#2185

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
PhenX merged 4 commits intomainfromcopilot/update-deploy-docs-workflow
Nov 22, 2025

Conversation

Copy link
Contributor

CopilotAI commentedNov 19, 2025
edited
Loading

Updates thedeploy-docs.yml workflow to publish documentation to the externalfluentmigrator/fluentmigrator.github.io repository instead of the current repository's GitHub Pages.

Changes

  • Replace GitHub Pages deployment actions withpeaceiris/actions-gh-pages@v4 configured for external repository deployment
  • Update permissions frompages: write, id-token: write tocontents: write for cross-repository push access
  • Configure deployment target:fluentmigrator/fluentmigrator.github.io repository,main branch
  • Usedeploy_key withsecrets.ACTIONS_DEPLOY_KEY for authentication (required for external repository deployment)

Configuration

-name:Deploy to GitHub Pagesuses:peaceiris/actions-gh-pages@v4with:deploy_key:${{ secrets.ACTIONS_DEPLOY_KEY }}publish_dir:./docs-website/.vitepress/distexternal_repository:fluentmigrator/fluentmigrator.github.iopublish_branch:main

Setup Required

A deploy key must be generated and configured:

  1. Generate SSH key pair:ssh-keygen -t ed25519 -C "github-actions-deploy"
  2. Add thepublic key as a deploy key in thefluentmigrator/fluentmigrator.github.io repository (Settings → Deploy keys → Add deploy key, withwrite access enabled)
  3. Add theprivate key as a secret namedACTIONS_DEPLOY_KEY in this repository (Settings → Secrets and variables → Actions → New repository secret)
Original prompt

Make a PR to update the deploy-docs.yml GH actions workflow so that it publishes the docs to the fluentmigrator/fluentmigrator.github.io repositpory


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn moreCopilot coding agent tips in the docs.

Co-authored-by: PhenX <42170+PhenX@users.noreply.github.com>
CopilotAI changed the title[WIP] Update deploy-docs.yml to publish docs to GitHub repositoryDeploy docs to fluentmigrator/fluentmigrator.github.io repositoryNov 19, 2025
CopilotAI requested a review fromPhenXNovember 19, 2025 21:23
@PhenXPhenX marked this pull request as ready for reviewNovember 19, 2025 21:33
@github-actions
Copy link

github-actionsbot commentedNov 19, 2025
edited
Loading

Test Results

    2 files  ±0      2 suites  ±0   36s ⏱️ +5s
5 344 tests ±0  5 012 ✅ ±0  332 💤 ±0  0 ❌ ±0 
5 825 runs  ±0  5 229 ✅ ±0  596 💤 ±0  0 ❌ ±0 

Results for commitee358e9. ± Comparison against base commitdc07e1c.

♻️ This comment has been updated with latest results.

@PhenX
Copy link
Collaborator

@copilot I got this error while running the workflow :

[INFO] setup GITHUB_TOKEN
Error: Action failed with "The generated GITHUB_TOKEN (github_token) does not support to push to an external repository.
Use deploy_key or personal_token.

…loymentCo-authored-by: PhenX <42170+PhenX@users.noreply.github.com>
Copy link
ContributorAuthor

@copilot I got this error while running the workflow :

[INFO] setup GITHUB_TOKEN
...

Fixed in commitaf718d1. Changed fromgithub_token topersonal_token withsecrets.GH_PAT.

You'll need to create a Personal Access Token withrepo scope and add it as a secret namedGH_PAT in the repository settings (Settings → Secrets and variables → Actions → New repository secret).

@PhenX
Copy link
Collaborator

@copilot I prefer using deploy keys

Co-authored-by: PhenX <42170+PhenX@users.noreply.github.com>
Copy link
ContributorAuthor

@copilot I prefer using deploy keys

Changed to use deploy_key in commitee358e9.

Setup steps:

  1. Generate SSH key:ssh-keygen -t ed25519 -C "github-actions-deploy"
  2. Add public key as deploy key influentmigrator/fluentmigrator.github.io repo (Settings → Deploy keys, enable write access)
  3. Add private key as secretACTIONS_DEPLOY_KEY in this repo (Settings → Secrets and variables → Actions)

Copy link
Collaborator

@PhenXPhenX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I added the required deploy token and it works

@PhenXPhenX merged commitfcc42a9 intomainNov 22, 2025
5 of 7 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jzabroskijzabroskiAwaiting requested review from jzabroskijzabroski is a code owner

1 more reviewer

@PhenXPhenXPhenX approved these changes

Reviewers whose approvals may not affect merge requirements

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@PhenX

[8]ページ先頭

©2009-2025 Movatter.jp