From 5346123ec523b88dc43e0247f8a8f342876dab8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20S=C4=99k?= Date: Mon, 16 Dec 2024 16:34:09 +0100 Subject: [PATCH] Create publish-docs.yml (#239) --- .github/workflows/publish-docs.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/publish-docs.yml diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml new file mode 100644 index 00000000..f0996638 --- /dev/null +++ b/.github/workflows/publish-docs.yml @@ -0,0 +1,41 @@ +name: build audio api docs + +on: + push: + branches: + - main + paths: + - packages/audiodocs/** + workflow_dispatch: + +jobs: + publish: + if: github.repository == 'software-mansion-labs/react-native-audio-api' + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup Node + uses: actions/setup-node@v4 + + - name: Setup Yarn + uses: mskelton/setup-yarn@v2 + + + - name: Install dependencies and build the docs + run: | + cd packages/audiodocs + yarn + yarn build + + - name: Upload build files + uses: actions/upload-pages-artifact@v3 + with: + path: ./build + + - name: Setup Pages + uses: actions/configure-pages@v5 + + - name: Deploy to Github Pages + uses: actions/deploy-pages@v4