Skip to content

Commit

Permalink
Replaces the build action
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptakS committed Nov 9, 2024
1 parent 22cc34b commit a1abf77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/eleventy_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Build
uses: TartanLlama/[email protected]

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
install_dependencies: true
args: --pathprefix 2023
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install packages
run: npm ci

- name: Run npm build
run: npm run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"scripts": {
"build": "npx @11ty/eleventy"
},
"devDependencies": {
"@11ty/eleventy": "2.0.1",
"markdown-it": "^14.1.0"
Expand Down

0 comments on commit a1abf77

Please sign in to comment.