Skip to content

Add GitHub Actions workflows #1

Add GitHub Actions workflows

Add GitHub Actions workflows #1

Workflow file for this run

name: "Deploy"
on:
push:
branches:
- "deploy"
- "3-migrate-to-github-actions"
jobs:
build:
name: "Build Site"

Check failure on line 10 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 10, Col: 5): Required property is missing: runs-on .github/workflows/deploy.yml (Line: 23, Col: 5): Required property is missing: runs-on
steps:
- name: "Run Hugo"
uses: "./.github/actions/hugo-build"
- name: "Artifact Built Site"
uses: "actions/upload-artifact@v4"
with:
name: "Built Site"
path: "public"
if-no-files-found: "error"
publish:
name: "Publish Site"
needs: "build"
steps:
- name: "Download Built Site"
uses: "actions/download-artifact@v4"
with:
name: "Built Site"
path: "public"
- name: "Save Deploy Key"
run: "echo ${{ secrets.DEPLOY_KEY }} > deploy_key"
- name: "Publish Built Site"
run: "rsync -avz -e \"ssh -i ./deploy_key -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null\" --progress public/ [email protected]:/srv/www/kineo"