github action trigger at commit

This commit is contained in:
Wouter Groeneveld 2021-03-05 18:12:55 +01:00
parent a6246cf201
commit 687c0a705e
3 changed files with 47 additions and 6 deletions

33
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn jamstack build
run: |
yarn install
yarn run jamstack
- name: commit generated hugo stuff
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: jamstack update metadata

View File

@ -25,6 +25,6 @@
},
"homepage": "https://github.com/wgroeneveld/redzuurdesem#readme",
"dependencies": {
"jam-my-stack": "^1.0.3"
"jam-my-stack": "^1.0.4"
}
}

View File

@ -2853,17 +2853,18 @@ fsevents@~2.3.1:
languageName: node
linkType: hard
"jam-my-stack@npm:^1.0.3":
version: 1.0.3
resolution: "jam-my-stack@npm:1.0.3"
"jam-my-stack@npm:^1.0.4":
version: 1.0.4
resolution: "jam-my-stack@npm:1.0.4"
dependencies:
ent: ^2.2.0
fast-xml-parser: ^3.18.0
got: ^11.8.2
howlongtobeat: ^1.3.1
lunr: ^2.3.9
moment: ^2.29.1
parser-front-matter: ^1.6.4
checksum: 97821256733208521c8fcddb772c6292bc196ba03e3461091a5c34a077e1fc3a0d09b44ce1ddb6097994e1e1e89f93c9e4bbc7cae08531abc4bd1908f965a47e
checksum: 9962c87f145ff83aa85b11e9b0072c0f6541049039783bd4e3a363e86083430e25a6acf027a61579a05375db10beafd2f1cb27eef47bbaa4d7b504b24dd5901f
languageName: node
linkType: hard
@ -3187,6 +3188,13 @@ fsevents@~2.3.1:
languageName: node
linkType: hard
"moment@npm:^2.29.1":
version: 2.29.1
resolution: "moment@npm:2.29.1"
checksum: 86729013febf7160de5b93da69273dd304d674b0224f9544b3abd09a87671ddd2cdd57598261ce57588910d63747ffd5590965e83c790d8bf327083c0e0a06e0
languageName: node
linkType: hard
"ms@npm:2.0.0":
version: 2.0.0
resolution: "ms@npm:2.0.0"
@ -3561,7 +3569,7 @@ fsevents@~2.3.1:
"@babel/cli": ^7.8.4
"@babel/core": ^7.9.6
"@babel/preset-env": ^7.9.6
jam-my-stack: ^1.0.3
jam-my-stack: ^1.0.4
languageName: unknown
linkType: soft