From 8c753090117b8237f0e18270dc40f190b4c72c7c Mon Sep 17 00:00:00 2001 From: Joseph Cummings Date: Mon, 19 Feb 2024 12:17:53 +0000 Subject: [PATCH] Add PR check and Hugo build workflows --- .github/workflows/build-hugo.yml | 38 ++++++++++++++++++++++++ .github/workflows/pull-request-check.yml | 20 +++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 .github/workflows/build-hugo.yml create mode 100644 .github/workflows/pull-request-check.yml diff --git a/.github/workflows/build-hugo.yml b/.github/workflows/build-hugo.yml new file mode 100644 index 0000000..d99f2f5 --- /dev/null +++ b/.github/workflows/build-hugo.yml @@ -0,0 +1,38 @@ +name: Build Hugo Site +on: + push: + branches: + - 'master' + pull_request: + paths-ignore: + - "**.md" + - ".github/**" + - ".gitignore" + - ".gitattributes" + branches: + - 'master' +jobs: + hugo: + name: Build Hugo Site + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Setup Hugo + uses: peaceiris/actions-hugo@v2 + with: + hugo-version: 'latest' + extended: true + - + name: Install Node + uses: actions/setup-node@v4 + with: + node-version: 19.9.0 + - + name: Install Dependencies + run: npm install + - + name: Build Hugo Site + run: hugo --minify \ No newline at end of file diff --git a/.github/workflows/pull-request-check.yml b/.github/workflows/pull-request-check.yml new file mode 100644 index 0000000..b23567e --- /dev/null +++ b/.github/workflows/pull-request-check.yml @@ -0,0 +1,20 @@ +name: Pull Request Check +on: + pull_request: + paths-ignore: + - "**.md" + - ".github/**" + - ".gitignore" + - ".gitattributes" + types: [opened, edited] +jobs: + checkPullRequest: + name: Pull Request check + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + - + name: Check pull requests + uses: EventStore/Automations/pr-check@master \ No newline at end of file