name: Deploy website
on:
  release:
    types: [published]

jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@master

    - name: Deploy website
      uses: JamesIves/github-pages-deploy-action@master
      env:
        ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        BRANCH: gh-pages
        FOLDER: _site
        BUILD_SCRIPT: npm install && npm run predeploy

name: Deploy website
on:
  release:
    actions:
      - published
    branches:
      - master
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout
      uses: actions/checkout@master

    - name: Deploy website
      uses: JamesIves/github-pages-deploy-action@master
      env:
        ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
        BRANCH: gh-pages
        FOLDER: _site
        BUILD_SCRIPT: npm install && npm run predeploy

Revert "chore: update release action"
Revert "chore: update release action"

This reverts commit dd75e5e196a6df30d1ae6ef6127e4c6db8bdc95a.
