From 953b136b1492853376ebea84ee303906b684bbe5 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 24 Sep 2020 20:12:47 +0200 Subject: [PATCH] Add GitHub Pages Action --- .github/workflows/node.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index c1fe2b9..6e7a639 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -25,3 +25,13 @@ jobs: uses: bahmutov/npm-install@v1.1.0 - name: Test run: yarn test + - name: Copy built files to docs + run: cp ./dist/shareon.min.* ./docs + - name: Deploy to GitHub Pages + uses: crazy-max/ghaction-github-pages@v2.1.2 + with: + keep_history: true + build_dir: docs + fqdn: shareon.js.org + jekyll: false + if: github.event == 'push' && github.ref == 'master'