diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-03-19 21:58:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 21:58:08 +0300 |
commit | c17c94737621cb951ce8ab162632995af8c79391 (patch) | |
tree | 1a292a2fbceb9f0b860ae6b75282d940cb1f7a88 /.github | |
parent | 5ff07deb4dd7ea6c5d99fb59a25586c8b8674d37 (diff) |
Automate docs deployment (#133)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/deploy.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..3064dde11 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,52 @@ +name: Deploy + +on: + push: + tags: + - '*' + +env: + CI: true + NODE: 12.x + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Clone repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: "${{ env.NODE }}" + + - run: node --version + - run: npm --version + + - name: Set up npm cache + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }} + restore-keys: | + ${{ runner.OS }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}-${{ hashFiles('.github/workflows/test.yml') }} + ${{ runner.OS }}-node-v${{ env.NODE }}- + + - name: Install npm dependencies + run: npm ci + + - name: Build the icons + run: npm run icons + + - name: Build the docs + run: npm run docs-build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + emptyCommits: false + personal_token: ${{ secrets.PERSONAL_TOKEN }} + publish_branch: gh-pages + publish_dir: ./_site/ |