Skip to content

Commit

Permalink
CI - Add job to build docs (#146)
Browse files Browse the repository at this point in the history
* CI - Add job to build docs

* Test trigger commit

* Update paths globs

* Fix docs path

* Add package manager to package.json

* Test broken commit

* Fix build

* Remove useless comment
  • Loading branch information
veteran29 authored Jan 3, 2025
1 parent 9b1db31 commit 615fc57
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docs

on:
push:
branches: [master, release]
paths: ['docs/**']
pull_request:
paths: ['docs/**']

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
uses: withastro/action@v2
with:
path: docs
3 changes: 2 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "docs",
"type": "module",
"packageManager": "[email protected]",
"version": "0.0.1",
"scripts": {
"dev": "astro dev",
Expand Down Expand Up @@ -28,4 +29,4 @@
"js-yaml": "^4.1.0",
"lightningcss": "^1.24.1"
}
}
}

0 comments on commit 615fc57

Please sign in to comment.