name: GitHub Pages publish

on:
  push:
    branches: master

jobs:
  publish:

    runs-on: ubuntu-latest

    steps:
    - name: Download dist folder
      uses: actions/download-artifact@v1
      with:
        name: dist-folder
    - run: ls -R dist-folder/
    - name: Deploy to GitHub Pages
      if: success()
      uses: crazy-max/ghaction-github-pages@v2
      with:
        build_dir: dist-folder
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


name: GitHub Pages publish

on:
  push:
    branches: master

jobs:
  publish:

    needs: build

    runs-on: ubuntu-latest

    steps:
    - name: Download dist folder
      uses: actions/download-artifact@v1
      with:
        name: dist-folder
    - run: ls -R dist-folder/
    - name: Deploy to GitHub Pages
      if: success()
      uses: crazy-max/ghaction-github-pages@v2
      with:
        build_dir: dist-folder
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


Revert "Remove extraneous job dependency"
Revert "Remove extraneous job dependency"

This reverts commit 77e239af5cd6eaa95c5417824ddd5ea19889cca3.
