diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 6e7a639..14f222d 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -25,8 +25,10 @@ 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 + if: github.event == 'push' && github.ref == 'refs/heads/master' - name: Deploy to GitHub Pages uses: crazy-max/ghaction-github-pages@v2.1.2 with: @@ -34,4 +36,4 @@ jobs: build_dir: docs fqdn: shareon.js.org jekyll: false - if: github.event == 'push' && github.ref == 'master' + if: github.event == 'push' && github.ref == 'refs/heads/master'