Skip to content

Commit

Permalink
Add a GPT, broken, config for deploying the site
Browse files Browse the repository at this point in the history
  • Loading branch information
w0rp committed Nov 19, 2023
1 parent 1de5cbf commit 9d1628c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Deploy Website

on: # yamllint disable-line rule:truthy
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Check out the code
# TODO: Use newer checkout version.
- name: Checkout code
uses: actions/checkout@v2

# Set up SSH
# TODO: Use newer SSH connection
# This is a GPT hallucination, probably.
- name: Setup SSH connection
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

# Run Hugo on the server to build the site
- name: Build Site with Hugo
run: |
# TODO: needs to build with Hugo v0.80.0
ssh [email protected] "cd ~/denseanalysis-org && hugo"
5 changes: 5 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

extends: default
ignore: |
.git

0 comments on commit 9d1628c

Please sign in to comment.