test #13
Workflow file for this run
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
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- retry | |
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: | | |
cd build | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add -A | |
git commit -m 'Reflect changed sources' | |
git push -f origin master | |
git push -f https://${{ secrets.GITHUB_TOKEN }}@github.com/ginzarb/ginzarb.github.io.git master |