Skip to content

Upgrade part of the stack #17

Upgrade part of the stack

Upgrade part of the stack #17

name: Eleventy Build
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Enable Corepack
run: corepack enable
- name: Read .nvmrc
run: echo "NODE_VERSION=$(cat .nvmrc)" >> "$GITHUB_OUTPUT"
id: nvm
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NODE_VERSION }}'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./dist
cname: clementprodhomme.fr