Files
Protocol-oral-history-project/.gitea/workflows/deploy.yaml
Drew d9dee3e0af
Some checks failed
build-and-deploy / build (push) Has been cancelled
adds debug into to the workflow
2025-04-08 22:41:54 -06:00

44 lines
1.0 KiB
YAML

name: build-and-deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: 'linux_amd64' # Try using standard labels instead of hostname
container:
image: klakegg/hugo:ext-ubuntu-latest
steps:
- name: Debug Runner Info
run: |
echo "Runner environment:"
env
echo "Current directory:"
pwd
echo "Docker info:"
docker info || echo "Docker not available"
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- 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