Skip to content

Commit

Permalink
Merge pull request #508 from oddbird/daily-deploy
Browse files Browse the repository at this point in the history
Deploy daily via GH action
  • Loading branch information
jgerigmeyer committed Feb 7, 2024
2 parents 9d49645 + e1164cb commit 95f645b
Show file tree
Hide file tree
Showing 16 changed files with 3,816 additions and 5,172 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Oddleventy",
"image": "node:16",
"image": "node:18",
"containerEnv": {
"SHELL": "/bin/bash"
},
Expand Down Expand Up @@ -29,7 +29,7 @@
"terminal.integrated.defaultProfile.linux": "bash",
"editor.bracketPairColorization.enabled": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
Expand Down Expand Up @@ -59,7 +59,7 @@
"[scss]": {
"editor.rulers": [80],
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
"source.fixAll.stylelint": "explicit"
}
},
"files.exclude": {
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Trigger Netlify Build

on:
workflow_dispatch: # Allow running on-demand
schedule:
# Every day at 8:00 UTC (3:00 or 4:00 Eastern)
- cron: '0 8 * * *'

jobs:
build:
name: Request Netlify Webhook
runs-on: ubuntu-latest
steps:
- name: POST to Build Hook
run: curl -X POST -d {} https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_BUILD_HOOK }}
1 change: 1 addition & 0 deletions .github/workflows/shadow-repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand All @@ -28,6 +29,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand All @@ -43,6 +45,7 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-webmentions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
# Use a separate key so the resulting PR also runs GH Actions
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
ssh-key: ${{ secrets.DEPLOY_KEY }}
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/upgrade-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
# Use a separate key so the resulting PR also runs GH Actions
# https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#triggering-further-workflow-runs
ssh-key: ${{ secrets.DEPLOY_KEY }}
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
],
"css.validate": false,
"scss.validate": false,
"eslint.packageManager": "yarn",
"stylelint.packageManager": "yarn",
"stylelint.validate": [
"css",
Expand Down
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

823 changes: 0 additions & 823 deletions .yarn/releases/yarn-3.3.1.cjs

This file was deleted.

4 changes: 0 additions & 4 deletions .yarnrc

This file was deleted.

8 changes: 2 additions & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
compressionLevel: mixed
enableGlobalCache: false
nodeLinker: node-modules

packageExtensions:
Expand All @@ -8,9 +10,3 @@ packageExtensions:
stylelint-config-recommended-scss@*:
dependencies:
postcss: "*"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.3.1.cjs
5 changes: 0 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
[build.environment]
NODE_VERSION = "16"
YARN_VERSION = "3.3.1"
YARN_CACHE_FOLDER = "/opt/buildhome/.yarn_cache"

[[plugins]]
package = "netlify-plugin-11ty"

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
},
"private": true,
"engines": {
"node": "^16",
"yarn": "^3"
"node": "^18",
"yarn": "^4"
},
"type": "module",
"scripts": {
Expand Down Expand Up @@ -123,5 +123,5 @@
"rimraf"
]
},
"packageManager": "yarn@3.3.1"
"packageManager": "yarn@4.1.0"
}
Loading

0 comments on commit 95f645b

Please sign in to comment.