Add GitHub Pages Action

pull/29/head
Nikita Karamov 2020-09-24 20:12:47 +02:00 committed by GitHub
parent 5f1f60d757
commit 953b136b14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -25,3 +25,13 @@ jobs:
uses: bahmutov/npm-install@v1.1.0 uses: bahmutov/npm-install@v1.1.0
- name: Test - name: Test
run: yarn 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'