From 9d1628cee5cf885b51583ef738f55d7c27584045 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 19 Nov 2023 10:52:56 +0000 Subject: [PATCH] Add a GPT, broken, config for deploying the site --- .github/workflows/cd.yml | 30 ++++++++++++++++++++++++++++++ .yamllint.yml | 5 +++++ 2 files changed, 35 insertions(+) create mode 100644 .github/workflows/cd.yml create mode 100644 .yamllint.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..90b5403 --- /dev/null +++ b/.github/workflows/cd.yml @@ -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/ssh-agent@v0.5.0 + 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 web@w0rp.com "cd ~/denseanalysis-org && hugo" diff --git a/.yamllint.yml b/.yamllint.yml new file mode 100644 index 0000000..089facb --- /dev/null +++ b/.yamllint.yml @@ -0,0 +1,5 @@ +--- + +extends: default +ignore: | + .git