Skip to content

Commit

Permalink
NEXT-33446 - move workflow to deploy admin sdk docs to root
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Feb 8, 2024
1 parent a3b2477 commit 5ba46c5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 50 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,34 @@ jobs:
branch: gh-pages
folder: redirect
clean: true

create-docs-admin-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: pnpm install

- name: Test to see if the project compiles
run: pnpm --filter @shopware-ag/meteor-admin-sdk run lint:all

- name: Create the docs directory locally in CI
run: pnpm --filter @shopware-ag/meteor-admin-sdk run doc

- name: Deploy 🚀
if: github.ref == 'refs/heads/trunk'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: packages/admin-sdk/docs/build
50 changes: 0 additions & 50 deletions packages/admin-sdk/.github/workflows/docs.yml

This file was deleted.

0 comments on commit 5ba46c5

Please sign in to comment.