diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 00000000000..3d47da65077 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,25 @@ +name: Middleman + +on: + push: + branches: [master] + +jobs: + build_and_deploy: + name: Build & Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler-cache: true + + - name: Install dependencies + run: bundle install + + - name: Build & Deploy to GitHub Pages + with: + REMOTE_BRANCH: gh-pages + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: yurikoval/middleman-gh-pages-action@master