Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #111 from EventStore/DEV-279/add-basic-github-actions
Browse files Browse the repository at this point in the history
DEV-279 - Add PR check and Hugo build workflows
  • Loading branch information
alexeyzimarev authored Feb 19, 2024
2 parents df5aa1a + 8c75309 commit 2902b74
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-hugo.yml
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions .github/workflows/pull-request-check.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2902b74

Please sign in to comment.