Skip to content

Commit 88a4987

Browse files
authored
Modernize 2025 - production push (#529)
Had a few issues with the deployment of #520, all is fixed now.
1 parent 051d2ee commit 88a4987

File tree

6 files changed

+36
-30
lines changed

6 files changed

+36
-30
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
uses: actions/configure-pages@v4
7777

7878
- name: Upload to GitHub Pages
79-
uses: actions/upload-pages-artifact@v3
79+
uses: actions/upload-pages-artifact@v4
8080
with:
8181
path: _site/
8282

.github/workflows/test-multilingual.yml

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,45 +11,52 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
1516

1617
- name: Setup Ruby
1718
uses: ruby/setup-ruby@v1
1819
with:
1920
ruby-version: '3.3.5'
2021
bundler-cache: true
21-
cache-version: 1
2222

2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
2626
node-version: '20.18.0'
2727
cache: 'npm'
2828

29-
- name: Install Node dependencies
30-
run: npm ci
29+
- name: Install Node dependencies (production only)
30+
run: npm ci --only=production
3131

32-
- name: Verify Ruby and Bundle setup
32+
- name: Verify setup
3333
run: |
34-
ruby --version
35-
bundle --version
36-
bundle list
34+
echo "Ruby version: $(ruby --version)"
35+
echo "Bundle version: $(bundle --version)"
36+
echo "Node version: $(node --version)"
37+
echo "NPM version: $(npm --version)"
38+
echo "Checking bundler gems..."
39+
bundle list --paths
3740
3841
- name: Run Jekyll build
39-
run: bundle exec jekyll build --config _config.yml
42+
run: bundle exec jekyll build --config _config.yml --verbose
43+
env:
44+
BUNDLE_PATH: vendor/bundle
45+
BUNDLE_JOBS: 4
46+
BUNDLE_RETRY: 3
4047

4148
- name: Run multilingual tests
42-
run: chmod +x ./test-multilingual.sh && ./test-multilingual.sh
43-
44-
- name: Check for broken links (sample)
4549
run: |
46-
# Basic link verification for main pages
47-
for lang in "" "fr/" "es/" "cs/"; do
48-
echo "Checking ${lang:-en} pages..."
49-
if [ -f "_site/${lang}about/index.html" ]; then
50-
echo "✅ ${lang:-en}about page exists"
51-
else
52-
echo "❌ ${lang:-en}about page missing"
53-
exit 1
54-
fi
55-
done
50+
chmod +x ./test-multilingual.sh
51+
./test-multilingual.sh
52+
53+
- name: Upload build artifacts on failure
54+
uses: actions/upload-artifact@v4
55+
if: failure()
56+
with:
57+
name: build-artifacts
58+
path: |
59+
_site/
60+
.jekyll-cache/
61+
Gemfile.lock
62+
retention-days: 5

.github/workflows/update-events.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
node-version: '20'
3131
cache: 'npm'
3232

33-
- name: Install dependencies
34-
run: npm install --only=production
33+
- name: Install Node.js dependencies
34+
run: npm ci --only=production
3535

3636
- name: Fetch latest events
3737
run: node fetch-events.cjs

app/.jekyll-metadata

433 Bytes
Binary file not shown.

app/assets/data/events.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"buildTime": "2025-10-03T00:24:35.976Z",
2+
"buildTime": "2025-10-03T00:56:22.749Z",
33
"count": 15,
44
"events": [
55
{

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"npm": ">=10.0.0"
1818
},
1919
"bugs": {
20-
"url": ""
20+
"url": "https://github.com/MissingMaps/missingmaps.github.io/issues"
2121
},
22-
"homepage": "",
22+
"homepage": "https://www.missingmaps.org",
2323
"scripts": {
2424
"postinstall": "[ -f _config-dev.yml ] || echo 'domain: http://localhost:3000\npath_prefix:' > _config-dev.yml",
2525
"serve": "gulp serve",
@@ -29,8 +29,7 @@
2929
"lint": "eslint app/assets/scripts/**/*.js updatedep.js",
3030
"lint:fix": "eslint app/assets/scripts/**/*.js updatedep.js --fix",
3131
"test": "npm run lint && npm run build",
32-
"clean": "gulp clean",
33-
"install": "bundle install"
32+
"clean": "gulp clean"
3433
},
3534
"browserify": {
3635
"transform": [

0 commit comments

Comments
 (0)