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: DevHub workflows #1337

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/deploy-developer-portal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow triggers DevHub production test-build-deploy workflow in the developer-portal repository.

name: Deploy to DevHub

on:
push:
branches:
- main

jobs:
trigger-deployment:
name: Trigger deployment
runs-on: ubuntu-latest
steps:

- uses: octokit/[email protected]
name: Trigger deployment
with:
route: POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
owner: shopware
repo: developer-portal
ref: main
workflow_id: checkout-test-build-deploy.yml
env:
GITHUB_TOKEN: ${{ secrets.DEV_HUB_PERSONAL_ACCESS_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/developer-portal-healthcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow creates a new status check for a pull request and triggers DevHub staging deployment.
# The developer-portal repository updates the status check by calling the update-healthcheck.yml workflow in this repo.

name: Healthcheck

on:
pull_request:
branches:
- main

jobs:

create-healthcheck:
uses: shopware/developer-portal/.github/workflows/healthcheck.yml@main
with:
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
branch: ${{ github.event.pull_request.head.ref }}
sha: ${{ github.event.pull_request.head.sha }}
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_TOKEN: ${{ secrets.DEV_HUB_PERSONAL_ACCESS_TOKEN }}
41 changes: 41 additions & 0 deletions .github/workflows/update-healthcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow is triggered from developer-portal.
# It updates the status check for the pull request based on the result of the staging build.

name: Update healthcheck

on:
workflow_dispatch:
inputs:
owner:
description: "Owner to checkout"
required: true
type: string
repo:
description: "Repo to checkout"
required: true
type: string
check:
description: "Check ID"
required: true
type: string
conclusion:
description: "Healthcheck conclusion"
required: true
type: string
run_id:
description: "Workflow run ID"
required: true
type: string

jobs:

update-healthcheck:
uses: shopware/developer-portal/.github/workflows/update-healthcheck.yml@main
with:
owner: ${{ inputs.owner }}
repo: ${{ inputs.repo }}
check: ${{ inputs.check }}
conclusion: ${{ inputs.conclusion }}
run_id: ${{ inputs.run_id }}
secrets:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 5 additions & 10 deletions apps/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,9 @@ import { SWAGTheme } from "vitepress-shopware-docs";
// import AI from "./components/AI.vue";
import "./custom.css";

export default Object.assign(
{
...SWAGTheme(),
export default SWAGTheme({
enhanceApp: ({ app }: { app: App }) => {
// app.component("AI", AI);
// app.provide('some-injection-key-if-needed', VALUE)
},
{
enhanceApp({ app }: { app: App }) {
// app.component("AI", AI);
// app.provide('some-injection-key-if-needed', VALUE)
},
},
);
})
Loading