Files
davideisinger.com/.gitea/workflows/deploy.yaml
David Eisinger a65638b1f3
All checks were successful
Deploy / deploy (push) Successful in 3m17s
Add cspell to Gitea Action
2026-04-15 01:01:18 -04:00

52 lines
1.2 KiB
YAML

name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
env:
HUGO_VERSION: 0.160.1
DEPLOY_DIR: /var/www/davideisinger.com
DITHER_CACHE_DIR: /workspace-cache/dither
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install packages
run: |
apt-get update
apt-get install -y curl imagemagick rsync ruby-full wget
wget --quiet https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
apt-get install -y ./hugo_extended_${HUGO_VERSION}_linux-amd64.deb
gem install bundler
- name: Restore secret key
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
printf '%s' "$SECRET_KEY" > secret.key
- name: Verify RSS template diff
run: ./bin/check-rss-template
- name: Spellcheck Markdown
run: npx -y cspell "content/**/*.md"
- name: Build site
run: ./bin/build
- name: Deploy site
run: ./bin/deploy-local "${DEPLOY_DIR}"