Skip to content

chore: make deploy workflow generic using GitHub Actions context#4

Open
itinsecurity wants to merge 1 commit into
bjornarfl:mainfrom
itinsecurity:chore/generic-deploy-workflow
Open

chore: make deploy workflow generic using GitHub Actions context#4
itinsecurity wants to merge 1 commit into
bjornarfl:mainfrom
itinsecurity:chore/generic-deploy-workflow

Conversation

@itinsecurity
Copy link
Copy Markdown

Summary

  • Replaces hardcoded bjornarfl/FlowState-TM references in the deploy workflow with GitHub Actions context expressions, so the workflow works for any fork without manual edits
  • VITE_BASE_PATH and VITE_REPO_URL are now derived from github.repository
  • DEPLOY_REMOTE is built from github.repository, removing the need for a hardcoded owner/repo in package.json
  • Removes the now-unused homepage field from package.json

Motivation

Forks currently have to manually edit deploy.yml and package.json before their GitHub Pages deploy works. These changes make the workflow self-configuring based on the repository it runs in.

Test plan

  • Verify GitHub Pages deploy still works on bjornarfl/FlowState-TM after merge
  • Fork the repo and confirm Pages deploy works without any manual edits

🤖 Generated with Claude Code

Replace hardcoded bjornarfl/FlowState-TM references with GitHub Actions
context expressions so the workflow works for any fork without manual edits.
- VITE_BASE_PATH and VITE_REPO_URL now derived from github.repository
- DEPLOY_REMOTE built from github.repository so package.json has no owner reference
- Remove unused homepage field from package.json

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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