Skip to content

Commit

Permalink
general update
Browse files Browse the repository at this point in the history
  • Loading branch information
sassdavid committed Jun 30, 2024
1 parent 5b774e3 commit 958b6a2
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 134 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/github-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy static content to Pages

on:
push:
branches: ["main"]
branches: [main]
workflow_dispatch:

permissions:
Expand All @@ -19,7 +19,7 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout from GitHub repository
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'public'
path: "public"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
23 changes: 21 additions & 2 deletions .github/workflows/node.js.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- name: Checkout from GitHub repository
Expand All @@ -21,7 +21,26 @@ jobs:
- name: Install node modules
run: npm ci
- name: Build application
run: npm run build
shell: bash
run: |
function retry {
local n=1
local max=3
local delay=5
while true; do
"$@" && break || {
if [[ $n -lt $max ]]; then
((n++))
echo "Command failed. Attempt $n/$max:"
sleep $delay;
else
echo "The command has failed after $n attempts."
return 1
fi
}
done
}
retry npm run build
env:
GATSBY_GOOGLE_MAPS_API_KEY: ${{ secrets.GATSBY_GOOGLE_MAPS_API_KEY }}
GATSBY_GOOGLE_MAPS_MAP_ID: ${{ secrets.GATSBY_GOOGLE_MAPS_MAP_ID }}
Expand Down
4 changes: 2 additions & 2 deletions .mise.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[tools]
node = "20.12.2"
"npm:gatsby-cli" = "5.13.3"
node = "20"
"npm:gatsby-cli" = "latest"
Loading

0 comments on commit 958b6a2

Please sign in to comment.