From f29f7bbae4f2a88c98b177970f01c08707d7566d Mon Sep 17 00:00:00 2001 From: Svyatoslav <34414488+matafokka@users.noreply.github.com> Date: Sat, 9 Mar 2024 13:28:14 +0300 Subject: [PATCH] Added gh-pages workflow --- .github/workflows/gh-pages.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..773db63 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,24 @@ +# https://github.com/marketplace/actions/deploy-to-github-pages + +name: Deploy to GitHub Pages + +on: + release: + types: [created] + workflow_dispatch: + +jobs: + deploy: + concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm install + - run: npm run docs + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4 + with: + folder: ./docs