Skip to content

Commit

Permalink
Merge pull request #19 from betagouv/dev
Browse files Browse the repository at this point in the history
Change build workflow
  • Loading branch information
RomainRonflette authored Nov 25, 2024
2 parents a0e8e9e + c408d3e commit 8c349ae
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 36 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Eleventy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-20.04

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies & build
run: |
npm ci
npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./_site
github_token: ${{ secrets.GITHUB_TOKEN }}
35 changes: 0 additions & 35 deletions .github/workflows/deploy-pages.yml

This file was deleted.

Empty file removed .nojekyll
Empty file.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.1.0",
"description": "Un service pour intégrer facilement des cartes dans des applications et sites internet.",
"scripts": {
"build": "npx @11ty/eleventy",
"build": "npx @11ty/eleventy --pathprefix 'fonds-de-cartes'",
"postbuild": "npx pagefind --site _site/ --output-subdir \"_pagefind\"",
"start": "npx @11ty/eleventy --serve --quiet",
"debug": "DEBUG=Eleventy* npx @11ty/eleventy",
Expand Down

0 comments on commit 8c349ae

Please sign in to comment.