From 0a55153dce38f74e80182812d13edc5a1d3c80b0 Mon Sep 17 00:00:00 2001 From: Mani Arasteh Date: Sat, 1 Jun 2024 17:43:36 +0330 Subject: [PATCH] Create gojekyll.yml --- .github/workflows/gojekyll.yml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/gojekyll.yml diff --git a/.github/workflows/gojekyll.yml b/.github/workflows/gojekyll.yml new file mode 100644 index 0000000..cfa7a41 --- /dev/null +++ b/.github/workflows/gojekyll.yml @@ -0,0 +1,36 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "master" branch + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v4 + + - name: Setup Go environment + uses: actions/setup-go@v5.0.1 + + - name: Installing GoJekyll + run: go install github.com/osteele/gojekyll@latest + - name: Building Go file + run: gojekyll build + - name: Serving Gojekyll + run: gojekyll serve