Skip to content

Improve Build yml

Improve Build yml #7

Workflow file for this run

name: Build
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Build
run: bundle exec middleman build
- name: Set Git info
run: |
git config user.email "[email protected]"
git config user.name "Ufuk Kayserilioglu"
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bundle exec middleman deploy