Skip to content

test

test #23

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- retry
permissions:
contents: write
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
run: |
git remote -v
cd build
git remote -v
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add -A
git commit -m 'Reflect changed sources'
git push -f --quiet https://${{ secrets.GITHUB_TOKEN }}@github.com/ginzarb/ginzarb.github.io.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}