Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build & publish

# Builds src/ and api/ into public/ (the directory Vercel actually serves,
# see vercel.json) and opens a PR with the result when it drifts from what's
# committed, so nobody has to remember to run `npm run build` and push the
# compiled output by hand — but a human still reviews and merges it.
on:
push:
branches: [master]

permissions:
contents: write
pull-requests: write

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci

- run: npm run build

- name: Open a PR if public/ changed
uses: peter-evans/create-pull-request@v6
with:
commit-message: "chore: rebuild public/"
title: "chore: rebuild public/"
body: Automated rebuild of `public/` from the latest `src/`/`api/` on `master`.
branch: chore/autobuild-public
add-paths: public
delete-branch: true
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI

on:
pull_request:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- run: npm ci

- run: npm run build
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ vercel_token

# Node
node_modules
package-lock.json

# Testing
coverage
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ nautilus | serika
* [x] Add themes (dark mode)
* [x] Add Skills: Tools & Frameworks widget
* [x] Add Skills: Software & IDEs widget
* [ ] Make autobuilder instead of manual build and push
* [x] Make autobuilder instead of manual build and push
* [ ] Count organization repositories (+ their stars)
* [ ] Truncate name if too long on profile widget
* [ ] Make all widgets a modular size
Expand Down
Loading