Skip to content

Commit

Permalink
Add GitHub Action for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
xjensen committed Feb 9, 2024
1 parent c74419e commit 1338b16
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish speedlify

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x

- name: Build pages
run: |
npm ci
npm run build
- name: Publish to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./_site
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1338b16

Please sign in to comment.