From 551d4b4f2d8f160784528b8207bdcf4c292212f3 Mon Sep 17 00:00:00 2001 From: Wlad Date: Fri, 13 Nov 2020 22:57:23 +0100 Subject: [PATCH] add test action --- .github/workflows/build-docs.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-docs.yaml diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml new file mode 100644 index 0000000..54913b6 --- /dev/null +++ b/.github/workflows/build-docs.yaml @@ -0,0 +1,31 @@ +name: Build Docs + +on: + # For this workflow, we're using the workflow_dispatch event which is triggered when the user clicks Run workflow in the GitHub Actions UI + workflow_dispatch: + +jobs: + test_job: + runs-on: ubuntu-latest + name: Testing private usage + steps: + # To use this repository's private action, you must check out the repository + - name: Checkout + uses: actions/checkout@v2 + with: + persist-credentials: false + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: "12.x" + - name: Install dependencies + run: npm ci + - run: npm test + - run: npm build + - name: Deploy Docs 🚀 + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages # The branch the action should deploy to. + FOLDER: dist # The folder the action should deploy. + CLEAN: true # Automatically remove deleted files from the deploy branch