Files
Protocol-oral-history-project/.gitea/workflows/deploy.yaml
Drew 5a4b3eb6d3
Some checks failed
build-and-deploy / build (push) Failing after 12s
removes docker from workflow
2025-04-08 22:59:14 -06:00

39 lines
967 B
YAML

name: build-and-deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: 'linux_amd64'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Hugo
run: |
HUGO_VERSION=0.121.1
wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb
sudo dpkg -i hugo_extended_${HUGO_VERSION}_linux-amd64.deb
- name: Build site
run: hugo --minify
env:
HUGO_ENV: production
- name: Install Surfer CLI
run: |
apt-get update
apt-get install -y npm
npm install -g cloudron-surfer
- name: Deploy to Surfer
run: |
if ! surfer put --token ${{ secrets.SURFER_TOKEN }} --server ${{ secrets.SURFER_SERVER }} public/* /; then
echo "Deployment failed"
exit 1
fi