name: CI
on:
  push:
    branches:
      - develop

jobs:
  build:
    runs-on: [ubuntu-latest]
    steps:
      - uses: actions/checkout@v2
        with:
          persist-credentials: false

      - uses: actions/setup-ruby@v1
        with:
          ruby-version: '2.7'

      - uses: actions/setup-node@v1
        with:
          node-version: '12.x'

      - name: install, build, test
        run: |
          npm ci && npm run build
          gem install bundler
          bundle install
          JEKYLL_ENV=production bundle exec jekyll build
          htmlproofer ./_site --check-html --allow-hash-href --disable-external

      - name: Deploy to GitHub Pages
        uses: JamesIves/github-pages-deploy-action@releases/v3
        with:
          ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
          BASE_BRANCH: develop # The branch the action should deploy from.
          BRANCH: master # The branch the action should deploy to.
          FOLDER: _site # The folder the action should deploy.
          CLEAN: true


name: CI
on:
  push:
    branches:
      - develop

jobs:
  build:
    runs-on: [ubuntu-latest]
    steps:
      - uses: actions/checkout@v2
        with:
          persist-credentials: false

      - uses: actions/setup-ruby@v1
        with:
          ruby-version: '2.7'

      - uses: actions/setup-node@v1
        with:
          node-version: '12.x'

      - name: install, build, test
        run: |
          npm ci && npm run build
          gem install bundler
          bundle install
          JEKYLL_ENV=production bundle exec jekyll build
          htmlproofer ./_site --check-html --allow-hash-href --disable-external

      - name: Deploy to GitHub Pages
        uses: JamesIves/github-pages-deploy-action@releases/v3
        with:
          ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
          BASE_BRANCH: develop # The branch the action should deploy from.
          BRANCH: master # The branch the action should deploy to.
          FOLDER: _site # The folder the action should deploy.
          CLEAN: true
          SINGLE_COMMIT: true


Enable SINGLE_COMMIT for gh deploy
Enable SINGLE_COMMIT for gh deploy
