From 8806dca8b04003db57959cb7be528aa903469ac4 Mon Sep 17 00:00:00 2001 From: Ufuk Kayserilioglu Date: Mon, 25 Mar 2024 22:58:15 +0200 Subject: [PATCH] Improve Build yml --- .github/workflows/build.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20d0bab9..2bc72980 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,15 +3,24 @@ on: push: branches: - master - +permissions: + contents: write jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ruby/setup-ruby@v1 with: ruby-version: '3.2' bundler-cache: true - - run: bundle exec middleman build - - run: bundle exec middleman deploy + - name: Build + run: bundle exec middleman build + - name: Set Git info + run: | + git config user.email "ufuk@paralaus.com" + git config user.name "Ufuk Kayserilioglu" + - name: Deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: bundle exec middleman deploy