Skip to content

Commit

Permalink
test gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
mijndert committed Mar 22, 2024
1 parent 5bf1e98 commit f9c9fba
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Deploy
name: Deploy website

on:
push:
Expand All @@ -16,21 +16,20 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js current
uses: actions/setup-node@v4
with:
node-version: 21
cache: 'npm'
- name: Install packages
run: npm ci
- name: Run npm build
run: DEBUG=* npx eleventy
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Install dependencies & build
run: |
npm ci
npx eleventy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.9.3
with:
path: ./dist
- name: Deploy to gh-pages
uses: actions/deploy-pages@v4
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
publish_branch: gh-pages

0 comments on commit f9c9fba

Please sign in to comment.