Compare commits
4 commits
afa7081181
...
664eed341a
| Author | SHA1 | Date | |
|---|---|---|---|
| 664eed341a | |||
| 5b80c113cf | |||
| 66556106f2 | |||
| c9e3359412 |
2 changed files with 56 additions and 12 deletions
49
.forgero/build.yml
Normal file
49
.forgero/build.yml
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
name: Build Eleventy
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- '/maintenance/**'
|
||||||
|
- '/README.md'
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '/maintenance/**'
|
||||||
|
- '/README.md'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: arch-linux
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [24.x]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Install dependencies & build
|
||||||
|
run: |
|
||||||
|
npm ci
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
- name: Deploy to forgejo-pages
|
||||||
|
run: |
|
||||||
|
git config user.email "adrianvictor+webmaster@disroot.org"
|
||||||
|
git config user.name "mareguma"
|
||||||
|
git checkout --orphan forgejo-pages
|
||||||
|
git rm -rf .
|
||||||
|
cp -r docs/* .
|
||||||
|
git add .
|
||||||
|
git commit -m "Deploy: $(date)"
|
||||||
|
git push -f origin forgejo-pages
|
||||||
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
|
@ -18,7 +18,7 @@ permissions:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: arch-linux
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -35,15 +35,10 @@ jobs:
|
||||||
- name: Install dependencies & build
|
- name: Install dependencies & build
|
||||||
run: |
|
run: |
|
||||||
npm ci
|
npm ci
|
||||||
npm run build
|
npm run build -- --pathprefix=""
|
||||||
|
|
||||||
- name: Deploy to forgejo-pages
|
- name: Deploy
|
||||||
run: |
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
git config user.email "ci@example.com"
|
with:
|
||||||
git config user.name "CI Bot"
|
publish_dir: ./docs
|
||||||
git checkout --orphan forgejo-pages
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
git rm -rf .
|
|
||||||
cp -r docs/* .
|
|
||||||
git add .
|
|
||||||
git commit -m "Deploy: $(date)"
|
|
||||||
git push -f origin forgejo-pages
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue