Change runner #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/middleman/middleman/issues/2289 | |
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- source | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@master | |
# ----------------------------------------------------Ruby | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: .tool-versions | |
bundler-cache: true | |
- name: Ruby Version | |
run: | | |
ruby -v | |
- name: Setup Ruby Dependencies | |
run: | | |
gem update bundler | |
bundle config set without 'development' | |
bundle install --jobs 4 --retry 3 | |
- name: Install ZeroMQ | |
run: | | |
sudo apt-get install libzmq3-dev | |
#- name: Test Ruby Dependencies | |
# run: | | |
# bundle exec rake -T | |
# ----------------------------------------------------Node | |
#- name: Install Node | |
# uses: actions/setup-node@v1 | |
# with: | |
# version: 10.16.3 | |
#- name: Node Version | |
# run: | | |
# node --version | |
#- name: Setup Node Dependencies | |
# run: | | |
# npm install | |
# ----------------------------------------------------Webpack | |
#- name: Build Webpack File | |
# run: | | |
# bundle exec rake webpack:build:production | |
- name: Build Middleman Site | |
run: | | |
bundle exec middleman build | |
# ----------------------------------------------------Deploy | |
- name: Deploy to Github Pages | |
uses: peaceiris/[email protected] | |
if: success() | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./build |