Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: demo deployment action #30

Merged
merged 5 commits into from
Oct 14, 2024
Merged

feat: demo deployment action #30

merged 5 commits into from
Oct 14, 2024

Conversation

sbellone
Copy link
Collaborator

@sbellone sbellone commented Sep 30, 2024

New GitHub Action that will build and push our demo when develop is updated.

Demo patch

I've generated a patch containing all changes between develop and the current demo branch:

$ git diff develop..demo --binary > algolia-demo.patch

Workflow

The GitHub Action will:

  • Checkout the develop branch (${{ github.ref_name }} points on the branch that triggered the workflow (doc))
  • Generate the algolia-config.json and commerce-api-config.json files using jq to inject variables and secrets from env vars (c.f. jq doc).
  • Apply the algolia-demo.patch
  • Build and push the bundle

I've created all necessary variables and used my Managed Runtime API Key for the MRT_API_KEY secret.

Test

I've tested the workflow on a temporary fork and was able to push a bundle: https://github.com/sbellone/algolia-pwa-demo/actions/runs/11109886226/job/30866297606


SFCC-384

@sbellone sbellone requested a review from htuzel September 30, 2024 17:04
@sbellone sbellone self-assigned this Sep 30, 2024
@sbellone sbellone changed the title feat: automated demo deployment feat: demo deployment action Oct 1, 2024
@sbellone sbellone merged commit 5b6d7ef into develop Oct 14, 2024
2 checks passed
@sbellone sbellone deleted the feat/deploy-demo branch October 14, 2024 07:52
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.

2 participants