Skip to content

Merge pull request #51 from ginzarb/revet-my-tests #12

Merge pull request #51 from ginzarb/revet-my-tests

Merge pull request #51 from ginzarb/revet-my-tests #12

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- source
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3
- name: Install dependencies
run: bundle install
- name: Clone target repository
run: |
git clone --quiet https://github.com/ginzarb/ginzarb.github.io.git build
pushd build
git checkout -b master
popd
- name: Build with Middleman
run: bundle exec middleman build
- name: Deploy
if: github.ref == 'refs/heads/source'
run: |
cd build
git add -A
git commit -m 'Reflect changed sources'
git push -f origin master
env:
GIT_COMMITTER_NAME: willnet
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_NAME: willnet
GIT_AUTHOR_EMAIL: [email protected]
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}