Skip to content

ci(workflow): ♻️ move pages‑artifact upload into build job & simplify deploy condition - #9

Merged
Skixkk merged 1 commit into
mainfrom
ci/move-pages-artifact-simplify-deploy-condition
Aug 16, 2026
Merged

Skixkk merged 1 commit into
mainfrom
ci/move-pages-artifact-simplify-deploy-condition

Conversation

@Skixkk

@Skixkk Skixkk commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Changes

  • Move actions/upload-pages-artifact from deploy job to build job
  • Simplify deploy‑job if‑statement, drop redundant github.ref == 'refs/heads/main' branch filter
    The top‑level trigger on.push.branches: [main] already guarantees push events only originate from main branch
  • Preserve concurrency settings, build steps, vitepress file‑copy logic and directory debug output

Purpose

Remove unnecessary branch condition, conform to artifact upload‑deploy workflow for GitHub Pages.

Impact

Only workflow yaml is modified, source code unchanged.

… deploy condition

- Move `actions/upload-pages-artifact` step from deploy job to build job
- Simplify deploy‑job if‑condition, remove redundant branch check:
  Top‑level `on.push.branches:[main]` already restricts push events to main branch
  New condition: `github.event_name == 'push' || github.event_name == 'workflow_dispatch'`
- Keep existing concurrency rules, build logic, docs copy and ls debug output unchanged
- Build and deploy are still separate jobs, pages artifact is produced inside build runner

Eliminate redundant branch judgment, adapt to official pages artifact workflow.

No related issues

@Skixkk Skixkk left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Pages artifact moved to build job, deploy condition simplified.
Checklist:

  • upload‑pages‑artifact inside build
  • Redundant branch check removed
  • Existing build logic kept
    LGTM

@Skixkk
Skixkk requested a review from Alininin August 16, 2026 18:05
@Skixkk
Skixkk merged commit 06241f8 into main Aug 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant