PackwizJS/.forgejo/workflows/docs.yml
cswimr f1fed002a2
Some checks failed
Actions / Build and Push Documentation (push) Failing after 3s
fix docs build action
we do not use pnpm ☠️
2025-02-09 10:56:15 -06:00

39 lines
1.2 KiB
YAML

name: Actions
on:
push:
branches:
- main
jobs:
docs:
name: Build and Push Documentation
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repository
uses: github.com/actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up SSH key
uses: www.coastalcommits.com/actions/ssh-agent@forgejo
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
instance-urls: "coastalcommits.com"
- name: Add instance URLs to known_hosts
run: ssh-keyscan -H coastalcommits.com >> ~/.ssh/known_hosts
- name: Setup Node.js
uses: github.com/oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Configure Git
run: |
git config --global user.name "CoastalCommits"
git config --global user.email "CoastalCommits@noreply@coastalcommits.com"
git remote set-url origin git@coastalcommits.com:${{ github.repository }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build Documentation
run: bun docs
- name: Commit and Push
run: |
git commit -a "Update documentation"
git push origin