Compare commits

...

16 commits

Author SHA1 Message Date
70f70bed29
Merge pull request #3 from JonasunderscoreJones/workflows-additions
All checks were successful
build-docusaurus / build (push) Successful in 1m14s
2025-06-13 02:28:31 +02:00
b49606bd70 fix build artifacts file name
All checks were successful
build-docusaurus / build (push) Successful in 1m36s
2025-06-13 01:55:56 +02:00
2e63f1885d changed job name 2025-06-13 01:55:08 +02:00
d523848dff changed back to v4
All checks were successful
build-docusaurus / build (push) Successful in 1m31s
2025-06-13 01:51:50 +02:00
117fc8653e removed debug jobs
All checks were successful
build-docusaurus / build (push) Successful in 1m45s
2025-06-13 01:27:29 +02:00
305c8518f9 changed name of build artifacts file 2025-06-13 01:27:03 +02:00
1f50d3ec71 downgraded version
All checks were successful
build-docusaurus / build (push) Successful in 1m36s
2025-06-13 01:20:28 +02:00
7729b75549 needs to be right after build
All checks were successful
build-docusaurus / build (push) Successful in 1m34s
2025-06-13 01:11:47 +02:00
0369e2a7fc more debug
Some checks failed
build-docusaurus / build (push) Has been cancelled
2025-06-13 01:10:50 +02:00
44ac68961c hopefully this fixes it?
Some checks failed
build-docusaurus / build (push) Failing after 1m35s
2025-06-13 01:02:15 +02:00
8ee3a0ef47 fixed workflow files
Some checks failed
build-docusaurus / build (push) Failing after 1m42s
2025-06-13 00:55:42 +02:00
0008b17278 removed alternate working dir
Some checks failed
build-docusaurus / build (push) Failing after 1m34s
2025-06-13 00:50:02 +02:00
822536817e wrong workflows file
Some checks failed
build-docusaurus / build (push) Failing after 11s
2025-06-13 00:48:56 +02:00
1867977eca debug because I dont know whats going on 2025-06-13 00:48:00 +02:00
2c14e6e236 fixed npm install command 2025-06-13 00:27:22 +02:00
efe610fcd0 added auto-build workflow files 2025-06-13 00:08:21 +02:00
2 changed files with 93 additions and 0 deletions

View file

@ -0,0 +1,48 @@
name: build-docusaurus
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: docker
steps:
- name: checkout repository
uses: https://code.forgejo.org/actions/checkout@v4
- name: setup node
uses: https://github.com/actions/setup-node@v4
with:
node-version: 20
- name: restore cached dependencies
uses: https://code.forgejo.org/actions/cache/restore@v4
with:
path: |
~/.npm
docusaurus/node_modules
key: ${{ runner.os }}-Docusaurus
- name: install dependencies
run: npm install --frozen-lockfile
- name: build project
run: npm run build
- name: capture build artifacts
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
name: docusaurus-build-artifacts.zip
path: build
if-no-files-found: error
- name: cache downloaded dependencies
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: https://code.forgejo.org/actions/cache/save@v4
with:
path: |
~/.npm
docusaurus/node_modules
key: ${{ runner.os }}-Docusaurus

45
.github/workflows/build-docusaurus.yml vendored Normal file
View file

@ -0,0 +1,45 @@
name: build-sveltekit
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Restore npm cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-
- name: Install dependencies
run: npm install --frozen-lockfile
- name: Build Docusaurus site
run: npm run build
- name: capture build artifacts
uses: actions/upload-artifact@v4
with:
name: docusaurus-build-artifacts
path: build
- name: Save npm cache
if: ${{ github.ref_name == github.event.repository.default_branch }}
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}