Files
website/.github/workflows/github-pages.yml
Duro f6f60dee0d starlight rewrite (#64)
* feat: migrate to starlight

* fix: add .gitignore

* fix: delete node_modules directory

* chore: update lockfile

* fix: remove .DS_STORE files

* feat: add github pages workflow

* feat: add netlify.toml, remove unneeded import on sponsors page

* fix: fix netlify publish directory

* fix: add .nvmrc

* fix: add checking for typedoc file

* fix: fix github pages script `bun build` -> `bun run build`

* fix: fix publish_dir in github pages workflow

* feat: add custom Head file for open-graph

* fix: hopefully fix deploying

* fix: fix git repo path

* fix: maybe fix build?

* fix: maybe fix build idk at this point

* fix: this should fix typedoc but it's throwing errors for no reason

* fix: my disappointment is immeasurable and my day is ruined

* fix: make API docs collapsed by default

* fix: remove sern-handler before git clone

* fix: fix og:image for sern by adding sern-logo to public folder

* fix: fix image path i think

* fix: fix services tabs

* on push no branch (for testing)

* also add workflow dispatch

* move to automata pushing & change back the branch rule

* remove sern capitalization

---------

Co-authored-by: Izan Gil <66965250+SrIzan10@users.noreply.github.com>
2024-05-07 16:12:29 +02:00

31 lines
772 B
YAML

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install Dependencies
run: bun install
- name: Build
run: rm -rf sern-handler && git clone https://github.com/sern-handler/handler sern-handler && cd sern-handler && bun install && cd .. && bun run build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.AUTOMATA_TOKEN }}
publish_dir: ./dist
user_name: sernbot
user_email: ${{ secrets.AUTOMATA_EMAIL }}