NEXT-33446 - move workflow to deploy admin sdk docs to root #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs | |
on: push | |
jobs: | |
create_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Deploy redirect | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
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 |