Skip to content

ci: Add CI/CD pipelines for build checks and website deployment - #6

Closed
jatinkrmalik wants to merge 2 commits into
mainfrom
feat/readme-badges
Closed

ci: Add CI/CD pipelines for build checks and website deployment#6
jatinkrmalik wants to merge 2 commits into
mainfrom
feat/readme-badges

Conversation

@jatinkrmalik

Copy link
Copy Markdown
Member

Overview

This PR adds comprehensive CI/CD pipelines to automate building, testing, and deployment processes for VocaMac.

Changes

1. Build & Test Pipeline ()

  • Trigger: Automatically runs on all pull requests to the main branch
  • Environment: Runs on macOS (macos-latest)
  • Steps:
    • Checks out the code
    • Builds the Swift project with swift build
    • Runs tests with swift test
  • Purpose: Ensures code quality and prevents regressions by validating builds and tests before merging

2. Deploy Website Pipeline ()

  • Trigger: Runs on release publication or manual workflow dispatch
  • Environment: Runs on Ubuntu
  • Steps:
    • Checks out the code
    • Configures GitHub Pages
    • Uploads the web/ directory as a Pages artifact
    • Deploys to GitHub Pages
  • Permissions: Properly configured for Pages deployment (pages: write, id-token: write, contents: read)
  • Custom Domain: Sets up CNAME record pointing to vocamac.com
  • Purpose: Automates website deployment whenever a new release is published or manually triggered

Benefits

  • Automated quality checks on every PR
  • Continuous integration for Swift code
  • Seamless website deployment to GitHub Pages
  • Custom domain support with CNAME configuration

@jatinkrmalik

Copy link
Copy Markdown
Member Author

Yeah, there was a mix-up because I was not using Git worktrees correctly. Will raise again.

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