From c1d02c44fd8c9ec4af9102227b83b4a907ae19e4 Mon Sep 17 00:00:00 2001 From: Nikita Belonogov Date: Tue, 15 Oct 2024 16:47:52 +0400 Subject: [PATCH] ci: PLT-526: Publish docs --- .github/workflows/publish_docs.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 0000000..f72dae2 --- /dev/null +++ b/.github/workflows/publish_docs.yml @@ -0,0 +1,30 @@ +name: "Publish Docs" + +on: + push: + branches: + - master + +concurrency: + group: ${{ github.workflow }}-${{ github.sha }} + +jobs: + publish: + name: "Publish Docs" + runs-on: ubuntu-latest + steps: + - uses: hmarr/debug-action@v3.0.0 + + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + + - name: Download Fern + run: npm install -g fern-api + + - name: Generate and Publish + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: fern generate --docs